Pinned gunicorn as the production WSGI server, smoke-tested it locally binding to a custom port with one worker and threads, and used the same command as the container entrypoint. Started instantly and served both new routes correctly, locally and on the hosting platform.
- What worked
- Single-worker plus threads configuration was simple to express and suited the app's in-process state; PORT interpolation via sh -c worked cleanly.