mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-08 05:54:53 +03:00
Update deployment-on-heroku.rst
This commit is contained in:
parent
72c52bd41f
commit
246de53236
|
@ -17,7 +17,8 @@ Run these commands to deploy the project to Heroku:
|
|||
heroku addons:create mailgun
|
||||
|
||||
heroku config:set WEB_CONCURRENCY=4
|
||||
heroku config:set DJANGO_ADMIN_URL=\^somelocation/
|
||||
# Generating a 32 character-long random string without any of the visually similiar characters "IOl01":
|
||||
heroku config:set DJANGO_ADMIN_URL="^$(openssl rand -base64 4096 | tr -dc 'A-HJ-NP-Za-km-z2-9' | head -c 32)/"
|
||||
heroku config:set DJANGO_SECRET_KEY="$(openssl rand -base64 64)"
|
||||
heroku config:set DJANGO_SETTINGS_MODULE='config.settings.production'
|
||||
heroku config:set DJANGO_ALLOWED_HOSTS='.herokuapp.com'
|
||||
|
@ -30,7 +31,7 @@ Run these commands to deploy the project to Heroku:
|
|||
heroku config:set DJANGO_MAILGUN_API_KEY=YOUR_MAILGUN_API_KEY
|
||||
heroku config:set MAILGUN_SENDER_DOMAIN=YOUR_MAILGUN_SENDER_DOMAIN
|
||||
|
||||
# required if using sentry
|
||||
# This is to be set only if you're using Sentry:
|
||||
heroku config:set DJANGO_SENTRY_DSN=YOUR_SENTRY_DSN
|
||||
|
||||
heroku config:set PYTHONHASHSEED=random
|
||||
|
|
Loading…
Reference in New Issue
Block a user