Flask
Deploy Flask with gunicorn, Postgres, migrations and workers.
Step by step: Deploy Flask to DigitalOcean · Deploy Flask to Hetzner · Deploy Flask to Vultr · Deploy Flask to OVHcloud
- Detected from
requirements.txtorpyproject.tomllistingflask. - Web: gunicorn on
$PORTwithapp:app. If your app lives elsewhere, set the start command to yourmodule:callable(for an app factory,"myapp:create_app()"). - Release: none by default. With Flask-Migrate, set it to
flask db upgrade; with Alembic,alembic upgrade head. AProcfilerelease:line is used when present. - Database:
psycopg→ Postgres, withDATABASE_URLinjected. - Workers and cron: RQ is offered when it’s a dependency. For Celery, add
worker: celery -A myapp.celery workerto yourProcfileor add it on the Workers tab.