First time here? Check out the FAQ!
0

How to configure uWSGI to serve Askbot?
 

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..

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
gopalraha's avatar
332
gopalraha
asked 8 years ago
Evgeny's avatar
13.2k
Evgeny
updated 8 years ago

Comments

see more comments

1 Answer

1

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 8 years ago, updated 8 years ago
link

Comments

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

gopalraha's avatar gopalraha (8 years ago)
see more comments