Clean up old cloud.gov services

This commit is contained in:
Neil Martinsen-Burrell 2023-08-21 14:32:45 -05:00
parent 2c1960e8ce
commit 130dacdf6f
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
2 changed files with 36 additions and 1 deletions

View 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

View file

@ -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"