-
-
Save muskie9/961a2e2705d59936fb6e to your computer and use it in GitHub Desktop.
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) | |
if [ -e "$DIR/composer.json" ]; then | |
if [ -d "$DIR/vendor" ]; then | |
composer.phar install | |
else | |
composer.phar update | |
fi | |
fi | |
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