The Python buildpack
detects if your build is Python by looking for a
requirements.txt file. If
found, dependencies will be installed using
The default Python version is
You can customize the Python version by adding a
runtime.txt file to the root of your project.
The contents of the file should include the version. For example,
When serving Django, you need to set the IP to
0.0.0.0, any other IP will most likely return an error when initiating the
Sample Flask Python Procfile
Railway uses Procfiles to determine the start command of your application. Flask is a popular choice for web servers on Railway.
Edit this file on GitHub