Skip to content

Instantly share code, notes, and snippets.

@Alireza2n
Created July 3, 2018 04:38
Show Gist options
  • Save Alireza2n/d433af715a34dda96c9184d9a853b45d to your computer and use it in GitHub Desktop.
Save Alireza2n/d433af715a34dda96c9184d9a853b45d to your computer and use it in GitHub Desktop.
Sample ini config for uwsgi package (ubuntu) to run Django apps
[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