mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
Merge pull request #1852 from alphagov/prototype-2
Add another prototyping app on PaaS
This commit is contained in:
@@ -192,7 +192,16 @@ cf-deploy: ## Deploys the app to Cloud Foundry
|
|||||||
.PHONY: cf-deploy-prototype
|
.PHONY: cf-deploy-prototype
|
||||||
cf-deploy-prototype: cf-target ## Deploys the app to Cloud Foundry
|
cf-deploy-prototype: cf-target ## Deploys the app to Cloud Foundry
|
||||||
$(if ${CF_SPACE},,$(error Must specify CF_SPACE))
|
$(if ${CF_SPACE},,$(error Must specify CF_SPACE))
|
||||||
cf push -f <(make -s CF_MANIFEST_FILE=manifest-prototype-${CF_SPACE}.yml generate-manifest)
|
(make -s CF_MANIFEST_FILE=manifest-prototype-${CF_SPACE}.yml generate-manifest) > /tmp/admin_manifest.yml
|
||||||
|
cf push -f /tmp/admin_manifest.yml
|
||||||
|
rm /tmp/admin_manifest.yml
|
||||||
|
|
||||||
|
.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))
|
||||||
|
(make -s CF_MANIFEST_FILE=manifest-prototype-2-${CF_SPACE}.yml generate-manifest) > /tmp/admin_manifest.yml
|
||||||
|
cf push -f /tmp/admin_manifest.yml
|
||||||
|
rm /tmp/admin_manifest.yml
|
||||||
|
|
||||||
.PHONY: cf-rollback
|
.PHONY: cf-rollback
|
||||||
cf-rollback: ## Rollbacks the app to the previous release
|
cf-rollback: ## Rollbacks the app to the previous release
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
inherit: manifest-prototype-2-base.yml
|
||||||
|
|
||||||
|
routes:
|
||||||
|
- route: notify-admin-prototype-2-preview.cloudapps.digital
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
inherit: manifest-prototype-2-base.yml
|
||||||
|
|
||||||
|
routes:
|
||||||
|
- route: notify-admin-prototype-2-production.cloudapps.digital
|
||||||
Reference in New Issue
Block a user