diff --git a/Makefile b/Makefile index 1aafc9d82..20d92d089 100644 --- a/Makefile +++ b/Makefile @@ -194,6 +194,11 @@ cf-deploy-prototype: cf-target ## Deploys the app to Cloud Foundry $(if ${CF_SPACE},,$(error Must specify CF_SPACE)) cf push -f <(make -s CF_MANIFEST_FILE=manifest-prototype-${CF_SPACE}.yml generate-manifest) +.PHONY: cf-deploy-prototype-2 +cf-deploy-prototype-2: cf-target ## Deploys the app to Cloud Foundry + $(if ${CF_SPACE},,$(error Must specify CF_SPACE)) + cf push -f <(make -s CF_MANIFEST_FILE=manifest-prototype-2-${CF_SPACE}.yml generate-manifest) + .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-2-base.yml b/manifest-prototype-2-base.yml new file mode 100644 index 000000000..e7927749e --- /dev/null +++ b/manifest-prototype-2-base.yml @@ -0,0 +1,31 @@ +--- + +buildpack: python_buildpack +command: scripts/run_app_paas.sh gunicorn -w 5 -b 0.0.0.0:$PORT application +instances: 1 +memory: 1G +env: + NOTIFY_APP_NAME: admin + + # Credentials variables + ADMIN_CLIENT_SECRET: null + ADMIN_BASE_URL: null + API_HOST_NAME: null + DANGEROUS_SALT: null + SECRET_KEY: null + ROUTE_SECRET_KEY_1: null + ROUTE_SECRET_KEY_2: null + + AWS_ACCESS_KEY_ID: null + AWS_SECRET_ACCESS_KEY: null + + STATSD_PREFIX: null + + DESKPRO_API_HOST: null + DESKPRO_API_KEY: null + + TEMPLATE_PREVIEW_API_HOST: null + TEMPLATE_PREVIEW_API_KEY: null + +applications: + - name: notify-admin-prototype-2 diff --git a/manifest-prototype-2-preview.yml b/manifest-prototype-2-preview.yml new file mode 100644 index 000000000..1a998d2d9 --- /dev/null +++ b/manifest-prototype-2-preview.yml @@ -0,0 +1,6 @@ +--- + +inherit: manifest-prototype-2-base.yml + +routes: + - route: notify-admin-prototype-2-preview.cloudapps.digital diff --git a/manifest-prototype-2-production.yml b/manifest-prototype-2-production.yml new file mode 100644 index 000000000..ffffa7686 --- /dev/null +++ b/manifest-prototype-2-production.yml @@ -0,0 +1,6 @@ +--- + +inherit: manifest-prototype-2-base.yml + +routes: + - route: notify-admin-prototype-2-production.cloudapps.digital