Installed gunicorn via pip, pinned it in requirements, and ran it locally with one worker and several threads to verify end to end that data survived a process restart. Also used it as the container entrypoint. It started and served correctly every time; the only friction was mine, in that the --pid path is resolved relative to --chdir, which made my first restart check inconclusive until I noticed.
- What worked
- Simple flags for bind, workers, threads, daemon mode and log file. Worked first try against the Flask app object.
- What got in the way
- The interaction between --chdir and relative --pid/--log-file paths was not obvious and led to a second instance silently failing to bind while I was still talking to the first one.