Last active
January 1, 2016 19:29
-
-
Save vandorjw/8190988 to your computer and use it in GitHub Desktop.
This file contains 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
sudo yum install uwsgi uwsgi-plugins-python3 | |
uwsgi.ini | |
[uwsgi] | |
#variables | |
projectname = vandorjw | |
base = /var/sites/me/vandorjw | |
#config | |
plugins = python3 | |
http = 127.0.0.1:9000 | |
chdir = %(base)/src/%(projectname) | |
pythonpath = %(base)/src/%(projectname) | |
virtualenv = %(base)/venv/%(projectname) | |
env = DJANGO_SETTINGS_MODULE=%(projectname).settings | |
module = django.core.handlers.wsgi:WSGIHandler() | |
processes = 4 | |
threads = 2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[uwsgi]
variables
projectname = notes_vandorjw_me
base = /var/sites/me/vandorjw/notes
plugins = python3
chdir = %(base)/src/%(projectname)
pythonpath = %(base)/src/%(projectname)
virtualenv = %(base)/venv/%(projectname)
env = DJANGO_SETTINGS_MODULE=%(projectname).settings.local
module = django.core.handlers.wsgi:WSGIHandler()
socket = /run/uwsgi/%n.socket
chmod-socket = 660
logto = %(base)/logs/uwsgi.log