Ask Your Question
1

How to deploy on nginx webserver using uwsgi?

asked 2012-05-09 08:39:31 -0600

naavi gravatar image

updated 2012-05-11 04:46:21 -0600

I'm trying from quite a few days installing askbot on my nginx powered server (no apache backend) and still unsuccessful. I'm also not really sure if uwsgi is working correctly or not. I tried "make" on uwsgi (http://projects.unbit.it/downloads/uwsgi-latest.tar.gz) but received some errors.

I'm also eyeing on this feature, http://bugs.askbot.org/issues/105

Edit: I want to install askbot as a standalone application.

edit retag flag offensive close merge delete

Comments

The easiest way to install uwsgi without worrying too much is by pypi: pip install uwsgi it will compile and everything but it might throw errors if you don't have the correct libraries installed. Could you provide details on your target scenario?

Fitoria gravatar imageFitoria ( 2012-05-10 15:28:44 -0600 )edit

@Fitoria@Pramvir Here's the error log while installing uwsgi, http://dl.dropbox.com/u/14319084/pip.log

naavi gravatar imagenaavi ( 2012-05-11 04:45:20 -0600 )edit

I needed to install python-dev package, and now uwsgi installs perfectly. Where can I find the production.ini file of uwsgi of askbot? Isn't there any index.html file in python? What else do I need to configure in nginx to deploy the askbot?

naavi gravatar imagenaavi ( 2012-05-11 07:52:13 -0600 )edit

@rornvi I'll answer this shorly, give me a sec.

Fitoria gravatar imageFitoria ( 2012-05-11 10:52:30 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-05-11 11:56:41 -0600

updated 2012-05-11 12:00:48 -0600

Steps for Nginx + Wsgi setup.

  1. rename the django.wsgi to askbot_wsgi.py

  2. Use this nginx config. modified with your values.

  3. For uwsgi I preffer running it with supervisor with this conf

  4. Restart all the services and see if it works if don't check the logs.

I'll prepare a more detailed guide for the oficial documentation but with this three steps and configuration files and futher reading here for more in depth information. If you have troubles with this just add a comment to the answer.

edit flag offensive delete link more

Comments

Thanks for the prompt answer, I'll try using that conf soon. And please do update this question in case you publish the detailed guide.

naavi gravatar imagenaavi ( 2012-05-11 23:22:50 -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

Stats

Asked: 2012-05-09 08:39:31 -0600

Seen: 4,074 times

Last updated: May 11 '12