Detection
Uffizzi will detect your repository is a Python app if it has any of these files at its root:
requirements.txt
Pipfile
setup.py
Execution
Python doesn't have a conventional way to specify how to execute applications, so you must specify this for Uffizzi. Create a file named Procfile
at the root of your repository and fill it with the command to run that serves your application, prefixed by web:
Here are some examples:
web: gunicorn myproject.wsgi --log-file -
web: gunicorn app:app
web: daphne chat.asgi:channel_layer --port $PORT --bind 0.0.0.0 -v2
Troubleshooting
If Uffizzi cannot auto-detect your app, try one of the following troubleshooting methods: