Skip to content

Instantly share code, notes, and snippets.

@myungseokang
Forked from puilp0502/uwsgi.ini
Last active December 25, 2018 21:15
Show Gist options
  • Save myungseokang/a746528dd622b5d9a21299672ac5f2f3 to your computer and use it in GitHub Desktop.
Save myungseokang/a746528dd622b5d9a21299672ac5f2f3 to your computer and use it in GitHub Desktop.
Sample uwsgi ini configuration
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /home/ubuntu/(project-dir)
# Django's wsgi file
module = (project-name).wsgi:application
# the virtualenv (full path)
home = /home/ubuntu/.venv/(venv-name)/
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 8
# the socket (use the full path to be safe)
# should match the one specified in nginx conf
socket = /tmp/(project-name).sock
# ... with appropriate permissions - may be needed
chmod-socket = 664
# clear environment on exit
vacuum = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment