diff --git a/Makefile b/Makefile index e5e23a368..56200d921 100644 --- a/Makefile +++ b/Makefile @@ -219,6 +219,12 @@ cf-deploy: ## Deploys the app to Cloud Foundry cf stop notify-admin-rollback cf delete -f notify-admin-rollback +.PHONY: cf-deploy-prototype +cf-deploy-prototype: ## Deploys the app to Cloud Foundry + $(if ${CF_SPACE},,$(error Must specify CF_SPACE)) + cf target -s ${CF_SPACE} + cf push -f manifest-prototype-${CF_SPACE}.yml + .PHONY: cf-rollback cf-rollback: ## Rollbacks the app to the previous release @cf app --guid notify-admin-rollback || exit 1 diff --git a/manifest-prototype-base.yml b/manifest-prototype-base.yml new file mode 100644 index 000000000..0cd3aac50 --- /dev/null +++ b/manifest-prototype-base.yml @@ -0,0 +1,17 @@ +--- + +buildpack: python_buildpack +command: scripts/run_app_paas.sh gunicorn -w 5 -b 0.0.0.0:$PORT wsgi +services: + - notify-aws + - notify-config + - notify-template-preview + - hosted-graphite + - deskpro +instances: 1 +memory: 1G +env: + NOTIFY_APP_NAME: admin + +applications: + - name: notify-admin-prototype diff --git a/manifest-prototype-preview.yml b/manifest-prototype-preview.yml new file mode 100644 index 000000000..140d17a98 --- /dev/null +++ b/manifest-prototype-preview.yml @@ -0,0 +1,6 @@ +--- + +inherit: manifest-prototype-base.yml + +routes: + - route: notify-admin-prototype-preview.cloudapps.digital diff --git a/manifest-prototype-production.yml b/manifest-prototype-production.yml new file mode 100644 index 000000000..4fc239945 --- /dev/null +++ b/manifest-prototype-production.yml @@ -0,0 +1,6 @@ +--- + +inherit: manifest-prototype-base.yml + +routes: + - route: notify-admin-prototype-production.cloudapps.digital diff --git a/manifest-prototype-staging.yml b/manifest-prototype-staging.yml new file mode 100644 index 000000000..0c840b43f --- /dev/null +++ b/manifest-prototype-staging.yml @@ -0,0 +1,6 @@ +--- + +inherit: manifest-prototype-base.yml + +routes: + - route: notify-admin-prototype-staging.cloudapps.digital