Skip to content

Instantly share code, notes, and snippets.

@wlalele
Last active September 20, 2017 09:40
Show Gist options
  • Save wlalele/2d5de36a8e5cfc1f2e07db1116b86269 to your computer and use it in GitHub Desktop.
Save wlalele/2d5de36a8e5cfc1f2e07db1116b86269 to your computer and use it in GitHub Desktop.
function bash to update a symfony 1.4 project
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