实际上执行的命令:
cd /home/wwwroot/mytest.xxx.com/ && git pull
重启Nginx
service nginx start
重启PHP-fpm
kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`
或
service php-fpm restart
如果遇到手动执行git pull 报错 Please, commit your changes or stash them before you can merge
使用这个命令
git reset --hard