зеркало из https://github.com/mozilla/treeherder.git
1af312e0cc
dj-database-url extracts DB host, port, username, password and database name from the env variable 'DATABASE_URL' (unless another env variable name is specified). If the env variable is not defined, it falls back to the default passed to dj_database_url.config(). This means for Heroku and similar we can replace the multiple DB env variables with just one URL for default & one for read_only. This also effectively makes the setting of the read only DB variable mandatory for stage/production/heroku, since DEFAULT_DATABASE_URL won't be valid for them - so prevents us inadvertently not using the read only DB. The deployment script also had to be updated, so that we set the prod/stage-specific environment variables before using manage.py, since dj-database-url cannot rely on what's in the stage/prod local.py config (which isn't a bad thing, since we're deprecating that file). |
||
---|---|---|
.. | ||
aws | ||
supervisord | ||
update |