3 ms·
> Use Gunicorn instead of Apache for your webserver This is strange advice; while you can use gunicorn as a front-facing webserver, the gunicorn docs strongly
by apendleton 14y ago
> Use Gunicorn instead of Apache for your webserver
This is strange advice; while you can use gunicorn as a front-facing webserver, the gunicorn docs strongly recommend against doing so. In a typical deployment scenario, then, gunicorn and Apache would occupy different levels of your stack, with one running your WSGI app and the other exposing it to the world. The advice ought probably to be "Use gunicorn+nginx instead of Apache+mod_wsgi," and indeed, lots of people do make that recommendation about Django deployment.
- misiti3780 14y agosorry - i did forget to mention nginx should be in front of everything managing all requests + serving static content.
- misiti3780 14y agoupdated article
- antihero 14y agonginx+uWSGI emperor mode is such a nice setup.
- tinco 14y agoDid you ever try using Passenger (nginx) to run your WSGI app instead of Gunicorn+nginx? Seems like it would be even less of a hassle to run. (I work at Phusion, and am not a Django guy, just curious)
- misiti3780 14y agoif this question was for the author, my answer is no.