mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 19:48:36 +02:00
More migration scripts
This commit is contained in:
parent
0d2a9eee80
commit
4246bab870
2 changed files with 30 additions and 18 deletions
30
ops/scripts/migrate_new_old.sh
Executable file
30
ops/scripts/migrate_new_old.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
# This script sets up a completely new Cloud.gov CF Space with all the corresponding
|
||||
# infrastructure needed to run get.gov. It can serve for documentation for running
|
||||
# NOTE: This script was written for MacOS and to be run at the root directory
|
||||
# of the repository.
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo 'Please specify a name on the command line for the new space (i.e. lmm)' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# The user running this script has to be a SpaceDeveloper on both the
|
||||
# new and old org/spaces.
|
||||
|
||||
OLD_ORG="cisa-getgov-prototyping"
|
||||
NEW_ORG="cisa-dotgov"
|
||||
|
||||
#
|
||||
# delete old route
|
||||
cf target -o $OLD_ORG -s $1
|
||||
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
|
||||
|
||||
# delete old app
|
||||
cf target -o $OLD_ORG -s $1
|
||||
cf delete getgov-$1
|
||||
|
||||
printf "Remove -migrate from ops/manifests/manifest-$1.yaml"
|
Loading…
Add table
Add a link
Reference in a new issue