From 912728713a71fe65888c747cbcd3002d1d4d5f18 Mon Sep 17 00:00:00 2001 From: Athanasios Voutsadakis Date: Wed, 27 Sep 2017 12:11:44 +0100 Subject: [PATCH] Unbind the db service before pushing the app This should cause the app to get new credentials for the database upon pushing. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d8c650d5f..eac8473d8 100644 --- a/Makefile +++ b/Makefile @@ -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