1234567891011121314151617181920212223 |
- cd /data/www/cockData
- git pull
- source /etc/profile
- projectPath=/data/www/cockData
- cd $projectPath
- echo "成功进入目录:$projectPath"
- git stash
- git stash drop
- git reset
- git pull
- echo "拉取代码成功"
- pwd
- cd $projectPath
- sh /data/www/cockData/deploy/build_linux.sh
- echo "编译工程成功"
- # 删除日志
- # rm -f logs/*
- # echo "删除日志成功"
- supervisorctl restart egg
- echo "重启服务成功"
- echo "结束,此日志会落后git一个版本生效"
|