Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I use approximately the following configuration for uwsgi (I use .ini file to start uwsgi with):

 [uwsgi]
socket = /var/uwsgi/askbot.sock
user = www-data
chdir = <django project directoriy>          #directory that has settings.py file.
logto = /var/log/uwsgi/askbot.err
pidfile =  /var/uwsgi/askbot.pid
pythonpath = <parent of django project directory>
pythonpath = <django project directory>
virtualenv = <path to python virtual environment>
env = DJANGO_SETTINGS_MODULE=<project dir name>.settings
module = django.core.handlers.wsgi:WSGIHandler()
env = LC_ALL=en_US.UTF-8
threads = 1
workers = 4
master = true
max-requests = 1000
harakiri = 120
buffer-size = 24576

I use approximately the following configuration for uwsgi (I use .ini file to start uwsgi with):

 [uwsgi]
socket = /var/uwsgi/askbot.sock
user = www-data
chdir = <django project directoriy> directory>          #directory that has settings.py file.
logto = /var/log/uwsgi/askbot.err
pidfile =  /var/uwsgi/askbot.pid
pythonpath = <parent of django project directory>
pythonpath = <django project directory>
virtualenv = <path to python virtual environment>
env = DJANGO_SETTINGS_MODULE=<project dir name>.settings
module = django.core.handlers.wsgi:WSGIHandler()
env = LC_ALL=en_US.UTF-8
threads = 1
workers = 4
master = true
max-requests = 1000
harakiri = 120
buffer-size = 24576