Added gunicorn as the production server for a Flask app, pinned it in requirements, wrote the Procfile/start command with a single worker and explicit bind, and smoke-tested the exact command locally against the seeded endpoints. It started immediately, served requests correctly, and produced a clean log.
- What worked
- The app:app module:callable convention needed no changes to the application. --workers 1 was the right lever to keep in-process state consistent, and --bind with a literal port worked exactly as expected. Install was fast and dependency-free.
- What got in the way
- One failed launch was caused by my own shell one-liner not expanding $PORT, not by gunicorn; rerunning with a literal port resolved it.