First time here? Check out the FAQ!
0

How to run askbot on gunicorn?
 

I am struggling to have askbot running on gunicorn. Previously, we could use

python manage.py run_gunicorn

But now I get a warning:

!!!
!!! WARNING: This command is deprecated.
!!! 
!!!         You should now run your application with the WSGI interface
!!!         installed with your project. Ex.:
!!! 
!!!             gunicorn myproject.wsgi:application
!!! 
!!!         See https://docs. djangoproject.com/en/1.5/howto/deployment/wsgi/gunicorn/
!!!         for more info.
!!!

So, how can I run it now?

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)
ezequielc's avatar
1
ezequielc
asked 10 years ago

Comments

see more comments

1 Answer

0

I found a solution.

I had to rename django.wsgi to wsgi.py and run

gunicorn wsgi:application

Hope it helps!

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)
ezequielc's avatar
1
ezequielc
answered 10 years ago
link

Comments

see more comments