Unbind the db service before pushing the app

This should cause the app to get new credentials for the database upon
pushing.
This commit is contained in:
Athanasios Voutsadakis
2017-09-27 12:11:44 +01:00
parent 9a1aedec43
commit 912728713a

View File

@@ -283,6 +283,7 @@ 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 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