Skip to content

Commit

Permalink
Update Heroku deployment guide (#5656)
Browse files Browse the repository at this point in the history
* Remove setting of `PYTHONHASHSEED` env var, since it's defaulted to `random` since Python 3.3. See: 
  https://docs.python.org/3.13/whatsnew/3.3.html#builtin-functions-and-types
* Remove setting of `WEB_CONCURRENCY` env var to a hardcoded value, since on Heroku the Python buildpack dynamically sets the value at container boot based on the available CPUs, so it's best to not override the default with a value that might not match the size of the dyno. See: 
  https://devcenter.heroku.com/articles/python-concurrency#default-settings-and-behavior
  • Loading branch information
edmorley authored Jan 26, 2025
1 parent b5b24db commit f95ef4f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/3-deployment/deployment-on-heroku.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ Run these commands to deploy the project to Heroku:
# Assuming you chose Mailgun as mail service (see below for others)
heroku addons:create mailgun:starter
heroku config:set PYTHONHASHSEED=random
heroku config:set WEB_CONCURRENCY=4
heroku config:set DJANGO_DEBUG=False
heroku config:set DJANGO_SETTINGS_MODULE=config.settings.production
heroku config:set DJANGO_SECRET_KEY="$(openssl rand -base64 64)"
Expand Down

0 comments on commit f95ef4f

Please sign in to comment.