mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-11 13:11:17 -05:00
Merge pull request #1283 from alphagov/ensure-db-creds-rotation
Unbind the db service before pushing the app
This commit is contained in:
3
Makefile
3
Makefile
@@ -283,6 +283,9 @@ cf-deploy: ## Deploys the app to Cloud Foundry
|
||||
.PHONY: cf-deploy-api-db-migration
|
||||
cf-deploy-api-db-migration:
|
||||
$(if ${CF_SPACE},,$(error Must specify CF_SPACE))
|
||||
cf unbind-service notify-api-db-migration notify-db
|
||||
cf unbind-service notify-api-db-migration notify-config
|
||||
cf unbind-service notify-api-db-migration notify-aws
|
||||
cf push notify-api-db-migration -f manifest-api-${CF_SPACE}.yml
|
||||
cf run-task notify-api-db-migration "python db.py db upgrade" --name api_db_migration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user