Ask Your Question
0

How to configure uWSGI to serve Askbot?

asked 2016-07-29 01:31:46 -0600

updated 2016-07-29 02:22:40 -0600

Evgeny gravatar image

what is the default command that works with askbot

ex.

uwsgi --http :8000 --home /home/user/Env/site --chdir /home/user/site -w site.wsgi

I need help for wsgi the default uwsgi.ini file contents.

Thanks..

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-07-29 02:15:10 -0600

Evgeny gravatar image

updated 2016-07-29 02:15:28 -0600

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 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
edit flag offensive delete link more

Comments

Thanks @evegeny for great help and support.. It help me lot cheers :)

gopalraha gravatar imagegopalraha ( 2016-08-02 11:46:08 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-07-29 01:31:46 -0600

Seen: 1,040 times

Last updated: Jul 29 '16