Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.37 KB

ops_heroku_settings.md

File metadata and controls

29 lines (17 loc) · 1.37 KB

OPS and Heroku Settings

Staging

"Automatic deployment" feature on Heroku is enabled for the staging environment. Changes merged into the main branch will get automatically deployed to staging.

The staging URLs are:

Production

Production deployments are done by promoting the staging app to production in the Heroku pipeline. This is done on the Heroku dashboard. See also: https://devcenter.heroku.com/articles/pipelines#deployment-with-pipelines

The production URLs are:

Domain Redirect

Enable domain redirection by setting DOMAIN_REDIRECT_MIDDLEWARE_ENABLED to True. This will enable a middleware function that checks every request, and returns a 307 redirect to the first listed domain in TARGET_DOMAINS if the host header does not match one of the domains specified there.

Special purposes Environment Variables

  • USE_COMMENTO: If Commento.io commenting is to be enabled, set this to True. Don't forget to add the js domain to your CSP directives for script-src and child-src