Difference between revisions of "Uwsgi"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
Now 1 application can be started (second is complaining about the python plugin and encodings module although the .ini is exactly the same) | Now 1 application can be started (second is complaining about the python plugin and encodings module although the .ini is exactly the same) | ||
+ | |||
+ | |||
+ | ==Stopping== | ||
+ | Several suggestions made on the web: | ||
+ | |||
+ | This works: | ||
+ | |||
+ | <code>kill `pidof uwsgi`</code> | ||
+ | |||
+ | Other suggestion that looks cleaner: | ||
+ | |||
+ | <code>uwsgi --stop /run/uwsgi/pid</code> (or whereever your pid-file is) |
Revision as of 12:41, 14 July 2021
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)
Stopping
Several suggestions made on the web:
This works:
kill `pidof uwsgi`
Other suggestion that looks cleaner:
uwsgi --stop /run/uwsgi/pid
(or whereever your pid-file is)