Merge into production
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.
Note:
The --project
flag is not needed if you are running the platform
command from within your local repository.
-
Create a backup
Before you merge the
dev
feature intomaster
, create a backup of themaster
environment. The backup will preserve both the code and all of its data.platform backup --project <project id>
Select
master
as 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.
platform url
-
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>