From 912728713a71fe65888c747cbcd3002d1d4d5f18 Mon Sep 17 00:00:00 2001 From: Athanasios Voutsadakis Date: Wed, 27 Sep 2017 12:11:44 +0100 Subject: [PATCH 1/2] 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 From 2c590acff57987a93a06fa37b827f557cd123b74 Mon Sep 17 00:00:00 2001 From: Athanasios Voutsadakis Date: Mon, 2 Oct 2017 16:25:49 +0100 Subject: [PATCH 2/2] Also unbind notify-config and notify-aws --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index eac8473d8..aac64e7c4 100644 --- a/Makefile +++ b/Makefile @@ -284,6 +284,8 @@ cf-deploy: ## Deploys the app to Cloud Foundry 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