Skip to content
Discussion options

You must be logged in to vote

It does not work because you are running Gunicorn. The code in the if __name__ == '__main__' conditional never executes when using Gunicorn. The easiest way to make this work is to run on the Gevent web server by running python app.py, like you are doing locally.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pdneumann
Comment options

Answer selected by pdneumann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants