First time here? Check out the FAQ!
1

How to deploy on nginx webserver using uwsgi?
 

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.

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)
naavi's avatar
185
naavi
asked 12 years ago, updated 12 years ago

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's avatar Fitoria (12 years ago)

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

naavi's avatar naavi (12 years ago)

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's avatar naavi (12 years ago)

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

Fitoria's avatar Fitoria (12 years ago)
see more comments

1 Answer

2

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.

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)
Fitoria's avatar
1.1k
Fitoria
answered 12 years ago, updated 12 years ago
link

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's avatar naavi (12 years ago)
see more comments