Last active
April 18, 2016 10:08
-
-
Save wernerkrauss/33dcb098c05ed063be22 to your computer and use it in GitHub Desktop.
git post-merge hook for silverstripe installs.
This file contains 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately i cannot remember where i found this piece of code. So i cannot credit the right person...