mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-24 11:31:50 -05:00
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:
1
Makefile
1
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user