Last active
September 20, 2017 09:40
-
-
Save wlalele/2d5de36a8e5cfc1f2e07db1116b86269 to your computer and use it in GitHub Desktop.
function bash to update a symfony 1.4 project
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
function _update_project { | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo 'You have to call this method with 2 parameters, the git tag/branch name and the environment (prod, dev, ...)' | |
return | |
fi | |
git fetch -a | |
git checkout $1 | |
git pull | |
composer install | |
php symfony doc:mig --env=$2 | |
chown www-data:www-data ./ -R | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment