Flask for the routing, gunicorn as the production server, and a Procfile telling the
platform how to start it. The shape almost every Python service ends up in, minus the parts
you would delete anyway.
pip install -r requirements.txt
python main.pyThen open http://localhost:8080.
velixir deployvelixir installs your requirements and builds the image server-side.
- The
Procfilematters. Without it the platform starts Flask's development server, which is single-threaded and warns loudly.gunicornis what should serve real traffic. - Bind
$PORTon0.0.0.0. velixir injectsPORT; a loopback-only bind builds fine and then fails its health check.
MIT.