Reputation: 9112
I've been reading about deploying Django with gunicorn and I wanted to give it a try.
I have found at least 3 ways of running a server with gunicorn and django:
gunicorn [OPTIONS] [APP_MODULE] # tested locally and worked fine
python managy.py run_gunicorn # also works fine locally
gunicorn_django [OPTIONS] [SETTINGS_PATH] # I have an error due to apps/ location
I have Apache with nginx (serving static files) in production at the moment, works fine but is a litle slow and want to try Gunicorn. The first 2 options worked fine locally with nginx serving static files.
I want to know a couple if things:
PRODUCTION
environments ?Thank you guys.
Upvotes: 6
Views: 513
Reputation: 3465
Use gunicorn_django [OPTIONS] myproject
if you use myproject.settings
Upvotes: 1