Команды для обновления сайта на Symfony 2.x (GIT + update)
echo "Update git...";
#git pull origin master
git fetch --all
git reset --hard origin/master
echo "Update bundles...";
php composer.phar update
echo "Migrations...";
php bin/console doctrine:migrations:migrate #--dry-run
echo "Clear cache...";
php bin/console cache:clear --env=prod --no-debug
echo "Creating symlink...";
php bin/console assets:install --symlink
php bin/console assetic:dump --env=prod --no-debug
chown -R [user]:[group] /var/www/[user]/data/www/[domain]