Below is amazing tutorial for setting Flask with uWSGI:
Key command is :
uwsgi --socket 0.0.0.0:5000 --protocol=http -w wsgi:app
Key file content is :
wsgi.py
from launch import app
if __name__ == "__main__":
app.run()
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04
No comments:
Post a Comment