2015-03-31 15:11:40 +02:00
|
|
|
# mysite_uwsgi.ini file
|
|
|
|
[uwsgi]
|
|
|
|
|
|
|
|
plugins = python
|
|
|
|
|
|
|
|
# Django-related settings
|
|
|
|
# the base directory (full path)
|
2015-03-31 15:59:35 +02:00
|
|
|
chdir = /home/james/production/app
|
2015-03-31 15:11:40 +02:00
|
|
|
# Django's wsgi file
|
2015-03-31 15:59:35 +02:00
|
|
|
module = wsgi
|
2015-03-31 15:11:40 +02:00
|
|
|
# the virtualenv (full path)
|
|
|
|
home = /home/james/production/env
|
2015-03-31 15:41:09 +02:00
|
|
|
# something about ImportError
|
|
|
|
no-site = True
|
2015-03-31 15:11:40 +02:00
|
|
|
|
|
|
|
# process-related settings
|
|
|
|
# master
|
|
|
|
master = true
|
|
|
|
# maximum number of worker processes
|
|
|
|
processes = 1
|
|
|
|
# the socket (use the full path to be safe
|
|
|
|
socket = /tmp/james.sock
|
|
|
|
# ... with appropriate permissions - may be needed
|
|
|
|
chmod-socket = 664
|
|
|
|
# clear environment on exit
|
|
|
|
vacuum = true
|