-
Notifications
You must be signed in to change notification settings - Fork 0
Devops Setup Notes
Harry Guthrie edited this page Aug 27, 2020
·
4 revisions
Changed run method for uwsgi - see commit, it needs a root level app, but the command line port options still remain Using the docs https://stluc.manta.uqcloud.net/xlex/public/zones-guide.html#pythonuwsgi_django_flask_etc
- Install Python3.8, use this guide and use 3.8.2, 3.8.5 is broken for some reason 😢
- python3 -m pipenv install
Enable uwsgi
- webprojctl enable uwsgi
- uwsgi config location = /etc/uwsgi/uwsgi.ini
Setting up the python virtual env - We need to force the location of the python virtual environment because local user setup breaks system processes
virtualenv -p $(which python3.8) /var/www/uwsgi/.venvVIRTUAL_ENV=/var/www/uwsgi/.venv python3 -m pipenv install
Then in the uwsgi.ini add at the end of the first block
- "virtualenv = /var/www/uwsgi/.venv"