forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/pentest-high-pri-xss
- Loading branch information
Showing
18 changed files
with
784 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ In preparation for production-ready infrastructure, we wanted to create a living | |
+ [CircleCI failures](./Failed-Deployment-Troubleshooting.md#circleci-failures) | ||
+ [Runtime failures](./Failed-Deployment-Troubleshooting.md#compilationruntime-failure) | ||
+ [App Connectivity issues](./Failed-Deployment-Troubleshooting.md#app-connectivity-issues) | ||
+ [App roll-back](./Failed-Deployment-Troubleshooting.md#revision-rollback) | ||
|
||
## CircleCI failures | ||
**Symptom:** I deployed new code (via merging) but the app in Cloud.gov didn't update and is still running old code. | ||
|
@@ -77,4 +78,26 @@ export [email protected] | |
export LOGGING_LEVEL=DEBUG | ||
[...] | ||
bash scripts/deploy-backend.sh rebuild tdp-backend-raft tanf-dev | ||
``` | ||
``` | ||
|
||
## Revision Rollback | ||
|
||
First we need to get list of revisions and select a stable revision id. | ||
```cf revisions {app-name}``` | ||
|
||
Then use the last successful guid, we can populate this reversion command: | ||
``` | ||
cf curl v3/deployments \ | ||
-X POST \ | ||
-d '{ | ||
"revision": { | ||
"guid": "{last stable guid from list above}" | ||
}, | ||
"relationships": { | ||
"app": { | ||
"data": { | ||
"guid": "{current app guid}" | ||
} | ||
} | ||
} | ||
}'``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.