Now that you've had the chance to verify that your application built and deployed correctly on your development environment, you're ready to merge it into your production site. Platform.sh provides backup features that protect against any unforeseen consequences of your merges, keeping a historical copy of all of your code and data.
--projectflag is not needed if you are running the
platformcommand from within your local repository.
Create a backup
Before you merge the
master, create a backup of the
masterenvironment. The backup will preserve both the code and all of its data.
platform backup --project <project id>
masteras the environment you want to back up.
Merge feature into production
git checkout master git merge dev git push
When the build process completes, verify that your changes have been merged.
Restore a backup
If you would like to restore the code and data to the time of your backup, use the command
platform backup:restore --project <project id>