Difference between revisions of "Uwsgi"

From wiki
Jump to navigation Jump to search
(Created page with "Lots of confusion going around on the net about installing and using uwsgi. Here my notes. ==Used documentation== https://github.com/unbit/uwsgi/issues/1688 ==Installing== *...")
 
Line 3: Line 3:
 
==Used documentation==
 
==Used documentation==
 
https://github.com/unbit/uwsgi/issues/1688
 
https://github.com/unbit/uwsgi/issues/1688
 +
 +
https://www.digitalocean.com/community/tutorials/how-to-deploy-python-wsgi-applications-using-uwsgi-web-server-with-nginx
 +
 +
https://stackoverflow.com/questions/35262299/uwsgi-emperor-mode-not-working-outside-of-virtualenv
  
 
==Installing==
 
==Installing==

Revision as of 23:27, 25 March 2020

Lots of confusion going around on the net about installing and using uwsgi. Here my notes.

Used documentation

https://github.com/unbit/uwsgi/issues/1688

https://www.digitalocean.com/community/tutorials/how-to-deploy-python-wsgi-applications-using-uwsgi-web-server-with-nginx

https://stackoverflow.com/questions/35262299/uwsgi-emperor-mode-not-working-outside-of-virtualenv

Installing

  • pip3 install uwsgi
  • Create virtual python environment
virtualenv --clear --always-copy -p /usr/bin/python3 venv
  • Activate the virtual environment and install flask
pip3 install flask

Now 1 application can be started (second is complaining about the python plugin and encodings module although the .ini is exactly the same)