
Stage copying
Tool for copying websites between stages
This tool is meant for copying websites around. It combines a lot of steps that normally need to be done manually. It takes care of:
- checking that both source and target run a minimum required version (2560) to run this tool
- create a backup from the source website
- create a backup from the target website
- updating the core version of the target website to have the same version as the source website
- launching the target website again under the new version
- copying the files from the source site s3 bucket to the target site s3 bucket
- restores a backup from the source website into the target website
- restores the app settings from the original (so that the app settings with stage dependent info in them is not overwritten after copying)
After running the script, manually open the target website and do an /autoupgrade.
When copying to production, don't foget the ‘www.’ part in the domain name! Use the inspector network tab or console to see any errors if it takes long.
It is possible to skip the restoring of app settings afterwards. This is sometimes handy if you need to overwrite the system, for example when a newly launched system needs a first full copy. In that case you want to also copy the appsettings over and modify them afterwards. To do so, uncheck the checkbox, then the app settings from the source site will be used in the target site.
The copy tool does not handle ‘/’ at the end of the url for now, check if the url does not end with that.