Created
February 9, 2012 02:06
-
-
Save allanlei/1776494 to your computer and use it in GitHub Desktop.
Gunicorn config for Django application on Heroku with SSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing | |
workers = multiprocessing.cpu_count() * 2 + 1 | |
worker_class = 'gevent' | |
loglevel = 'error' | |
secure_scheme_headers = { | |
'X-FORWARDED-PROTO': 'https', | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: python manage.py run_gunicorn -b 0.0.0.0:$PORT -c config/gunicorn.conf --settings $DJANGO_SETTINGS_MODULE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment