Closed
Bug 1270454
Opened 9 years ago
Closed 9 years ago
Allow skipping the Heroku pre_deploy script entirely by defining 'SKIP_PREDEPLOY'
Categories
(Tree Management :: Treeherder: Infrastructure, defect, P2)
Tree Management
Treeherder: Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file)
By default, the bin/pre_deploy script that runs as part of a Heroku deploy will cause the deploy to abort if errors occurred.
These errors can be made non-fatal by defining IGNORE_PREDEPLOY_ERRORS in the environment.
However there are still cases where we don't want to even try to run the deploy script - for example when standing up a new Heroku instance, and we don't want the migrations to run until we're ready, so it doesn't interfere with replication.
As such, we should add the ability to set an environment variable to skip the pre_deploy script entirely.
Comment 1•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Attachment #8749142 -
Flags: review?(james)
Comment 2•9 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/680249cdeb3d566bcd335b27e0b9a354ab2d9379
Bug 1270454 - Allow skipping the Heroku pre_deploy script entirely
...by defining 'SKIP_PREDEPLOY' in the environment.
This is useful in cases where we want to avoid potentially destructive
actions (such as running migrations) from taking place, or know that the
migration is just going to time out unless run by hand.
https://github.com/mozilla/treeherder/commit/bb60ca61503f738e77be43cda7f7960aec4083a3
Merge pull request #1460 from mozilla/pre-deploy-skip-env
Bug 1270454 - Allow skipping the Heroku pre_deploy script entirely
Updated•9 years ago
|
Attachment #8749142 -
Flags: review?(james) → review+
| Assignee | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•