Merge pull request #1283 from alphagov/ensure-db-creds-rotation

Unbind the db service before pushing the app
This commit is contained in:
Sakis
2017-10-04 09:41:16 +01:00
committed by GitHub

View File

@@ -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