mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-29 07:43:32 +02:00
Clean up old cloud.gov services
This commit is contained in:
parent
2c1960e8ce
commit
130dacdf6f
2 changed files with 36 additions and 1 deletions
29
ops/manifests/manifest-dk.yaml
Normal file
29
ops/manifests/manifest-dk.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
applications:
|
||||||
|
- name: getgov-dk
|
||||||
|
buildpacks:
|
||||||
|
- python_buildpack
|
||||||
|
path: ../../src
|
||||||
|
instances: 1
|
||||||
|
memory: 512M
|
||||||
|
stack: cflinuxfs4
|
||||||
|
timeout: 180
|
||||||
|
command: ./run.sh
|
||||||
|
health-check-type: http
|
||||||
|
health-check-http-endpoint: /health
|
||||||
|
env:
|
||||||
|
# Send stdout and stderr straight to the terminal without buffering
|
||||||
|
PYTHONUNBUFFERED: yup
|
||||||
|
# Tell Django where to find its configuration
|
||||||
|
DJANGO_SETTINGS_MODULE: registrar.config.settings
|
||||||
|
# Tell Django where it is being hosted
|
||||||
|
DJANGO_BASE_URL: https://getgov-dk.app.cloud.gov
|
||||||
|
# Tell Django how much stuff to log
|
||||||
|
DJANGO_LOG_LEVEL: INFO
|
||||||
|
# default public site location
|
||||||
|
GETGOV_PUBLIC_SITE_URL: https://beta.get.gov
|
||||||
|
routes:
|
||||||
|
- route: getgov-dk.app.cloud.gov
|
||||||
|
services:
|
||||||
|
- getgov-credentials
|
||||||
|
- getgov-dk-database
|
|
@ -22,9 +22,15 @@ cf delete-route app.cloud.gov -n getgov-$1
|
||||||
# re-claim the route on new orf
|
# re-claim the route on new orf
|
||||||
cf target -o $NEW_ORG -s $1
|
cf target -o $NEW_ORG -s $1
|
||||||
cf map-route getgov-$1 app.cloud.gov -n getgov-$1
|
cf map-route getgov-$1 app.cloud.gov -n getgov-$1
|
||||||
|
cf delete-route app.cloud.gov -n getgov-$1-migrate
|
||||||
|
|
||||||
# delete old app
|
# delete old app and services
|
||||||
cf target -o $OLD_ORG -s $1
|
cf target -o $OLD_ORG -s $1
|
||||||
cf delete getgov-$1
|
cf delete getgov-$1
|
||||||
|
cf delete-service getgov-$1-database
|
||||||
|
cf delete-service getgov-credentials
|
||||||
|
cf delete-service getgov-cd-account
|
||||||
|
cf delete-space $1
|
||||||
|
|
||||||
|
|
||||||
printf "Remove -migrate from ops/manifests/manifest-$1.yaml"
|
printf "Remove -migrate from ops/manifests/manifest-$1.yaml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue