Last active
March 4, 2020 04:44
-
-
Save chx/9dbace679a8798f96da4a40e4df51902 to your computer and use it in GitHub Desktop.
Config export from production
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On production: | |
rm -Rf /tmp/cex/* /tmp/cex.tgz | |
drush cex --destination=/tmp/cex -y sync | |
cd /tmp/cex | |
tar czf ../cex.tgz . | |
On local: | |
git checkout master | |
scp [email protected]:/tmp/cex.tgz /tmp | |
rm -Rf sync/* | |
cd sync | |
tar xzf /tmp/cex.tgz | |
git add . | |
git commit -am 'prod config export' | |
git push | |
git checkout release-branch | |
git pull | |
git cherry-pick master | |
git push | |
git checkout develop | |
git pull | |
git cherry-pick master | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment