Skip to content

Instantly share code, notes, and snippets.

@mwl
Last active December 16, 2015 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwl/5477421 to your computer and use it in GitHub Desktop.
Save mwl/5477421 to your computer and use it in GitHub Desktop.
post update hook with deploying staging gotoservers
#!/bin/bash
export GIT_DIR=$(pwd)
cd ~/gotoServers
mkdir -p .vagrant
mv .vagrant ../.gotoServers.vagrant
git checkout -f master
git submodule init
git submodule update
mv ../.gotoServers.vagrant .vagrant
/usr/bin/vagrant up --no-provision
/usr/bin/vagrant provision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment