-
-
Save devSarry/5589e98d4e99af4a0e935ae8fa89b368 to your computer and use it in GitHub Desktop.
Git hooks/post-receive
This file contains hidden or 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 | |
WORKSPACE=/var/www/html/ | |
echo "Post-receive" | |
git --work-tree=$WORKSPACE checkout -f | |
cd $WORKSPACE | |
#################### | |
##### OPTIONAL ##### | |
#################### | |
## | |
## Laravel 5 setup | |
## | |
echo "Composer install" | |
composer install | |
echo "artisan migrate" | |
php artisan migrate | |
echo "npm install" | |
npm install | |
echo "gulp prod" | |
gulp --production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment