-
Notifications
You must be signed in to change notification settings - Fork 5
Use Gunicorn on Heroku instead of runserver #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Mezzanine threw a bit of a curveball with the deploy/gunicorn.conf.py file, so I'll have to look into that before I move forward with this. It's a bit different than the way I've done it in the past. |
This answer on Stackoverflow suggests putting this in the Procfile: http://stackoverflow.com/a/12862684
And this blog post (https://mike.tig.as/blog/2012/02/13/deploying-django-on-heroku/) recommends doing it this way:
The only difference is that the first one uses manage.py run_gunicorn and the second one uses gunicorn_django. Not sure which is better/preferred. |
Another example Gunicorn setup:
And his wsgi.py: The Procfile has different stuff too: |
yeah, there seems to be more than one way to skin a cat when it comes to On Sun, Feb 10, 2013 at 1:17 PM, Brian Dant [email protected]:
[email protected] |
Went with |
My earlier comment: "Mezzanine threw a bit of a curveball with the deploy/gunicorn.conf.py file, so I'll have to look into that before I move forward with this. It's a bit different than the way I've done it in the past." Assuming that these files are only used if running Fabric, and by the looks of the settings file, we're not. |
Are you guys still working with |
@vellamike: Yes, that's exactly what I'm using in production. Haven't had any problems yet, but I don't do any intense profiling or the like, so can't say much more than "seems good" :) |
https://devcenter.heroku.com/articles/django#using-a-different-wsgi-server
The text was updated successfully, but these errors were encountered: