Skip to content

Instantly share code, notes, and snippets.

@wernerkrauss
Last active April 18, 2016 10:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wernerkrauss/33dcb098c05ed063be22 to your computer and use it in GitHub Desktop.
Save wernerkrauss/33dcb098c05ed063be22 to your computer and use it in GitHub Desktop.
git post-merge hook for silverstripe installs.
#!/bin/bash
echo "running git post receive hook..."
DIR=$(git rev-parse --show-toplevel)
composer.phar install --no-dev -o
echo "running dev/build"
sudo -u www-data php $DIR/framework/cli-script.php dev/build flush=1
@wernerkrauss
Copy link
Author

Unfortunately i cannot remember where i found this piece of code. So i cannot credit the right person...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment