Skip to content

Instantly share code, notes, and snippets.

@ajohnstone
Last active December 14, 2015 21:49
Show Gist options
  • Save ajohnstone/5153426 to your computer and use it in GitHub Desktop.
Save ajohnstone/5153426 to your computer and use it in GitHub Desktop.
# 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