diff --git a/ops/manifests/manifest-dk.yaml b/ops/manifests/manifest-dk.yaml new file mode 100644 index 000000000..249eab119 --- /dev/null +++ b/ops/manifests/manifest-dk.yaml @@ -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 diff --git a/ops/scripts/migrate_new_old.sh b/ops/scripts/migrate_new_old.sh index 99cadb0b2..1ed56dcbf 100755 --- a/ops/scripts/migrate_new_old.sh +++ b/ops/scripts/migrate_new_old.sh @@ -22,9 +22,15 @@ cf delete-route app.cloud.gov -n getgov-$1 # re-claim the route on new orf cf target -o $NEW_ORG -s $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 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"