Last active
December 14, 2015 21:49
-
-
Save ajohnstone/5153426 to your computer and use it in GitHub Desktop.
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
# Provisioning | |
cd /opt/src/provisioning/; | |
git checkout migration | |
git submodule init | |
git submodule update | |
puppet apply --debug --verbose /etc/puppet/manifests/sandbox.pp | |
cd /opt/src/; | |
git checkout migration | |
git submodule init | |
git submodule update | |
cd /opt/src/web/symfony; | |
composer update | |
chown -R www-data: /opt/src/ | |
touch config_local.yml /opt/src/web/symfony/app/config/config_local.yml | |
apt-get install -y -f php5-curl | |
/etc/init.d/php5-fpm restart | |
for i in $(ls /etc/init/*service* | awk -F '/' '{print $4}' | sed 's/.conf//g'); do echo $i; restart $i; done; | |
# Rollback | |
cd /opt/src; | |
git checkout master | |
cd /opt/src/provisioning/; | |
git checkout master | |
git submodule init | |
git submodule update | |
puppet apply --debug --verbose /etc/puppet/manifests/sandbox.pp | |
cd /opt/src/web/symfony; | |
composer update | |
chown -R www-data: /opt/src/ | |
/etc/init.d/php5-fpm restart | |
for i in $(ls /etc/init/*service* | awk -F '/' '{print $4}' | sed 's/.conf//g'); do echo $i; restart $i; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment