Skip to content

Commit 80d92fc

Browse files
Update skills/flask-ui-builder/SKILL.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 572b929 commit 80d92fc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

skills/flask-ui-builder/SKILL.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,17 @@ python-dotenv>=1.0 # .env file support
468468

469469
### Gunicorn (production server)
470470

471+
Use the Gunicorn target that matches your Flask app structure:
472+
471473
```bash
472474
# Never use flask run or app.run() in production
475+
476+
# If app.py defines a module-level Flask instance:
477+
# app = Flask(__name__)
478+
gunicorn --bind 0.0.0.0:8000 --workers 4 app:app
479+
480+
# If app.py defines an application factory:
481+
# def create_app():
473482
gunicorn --bind 0.0.0.0:8000 --workers 4 "app:create_app()"
474483
```
475484

0 commit comments

Comments
 (0)