Start from the folder where the app lives. My preferred method is gunicorn, with the following command:
gunicorn -b 0.0.0.0:8057 -w 1 'hooks:app'
Or if running from a virtual environment, which you should be, use this command (change path as needed):
.venv/bin/python -m gunicorn -b 0.0.0.0:8057 -w 1 'hooks:app'