Uwsgi
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://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)