Created
July 3, 2018 04:38
-
-
Save Alireza2n/d433af715a34dda96c9184d9a853b45d to your computer and use it in GitHub Desktop.
Sample ini config for uwsgi package (ubuntu) to run Django apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uwsgi] | |
chdir=/home/alireza/app # Replace with your own project root | |
processes=10 | |
module=app.wsgi:application # Replace with your own app name | |
master=true | |
vacuum=True | |
daemonize=/var/log/uwsgi/app/app.log # Replace with your own app name | |
virtualenv =/home/alireza/app/.venv # Replace with path of your own virtualenv | |
enable-threads=true | |
env=DJANGO_SETTINGS_MODULE=app.settings.prod # Replace with your own settings module | |
# This is the path of uwsgi apt package on ubuntu lts | |
# replace app name with your own | |
#/etc/uwsgi/apps-enabled/app.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment