git.sh 462 B

1234567891011121314151617181920212223
  1. cd /data/www/cockData
  2. git pull
  3. source /etc/profile
  4. projectPath=/data/www/cockData
  5. cd $projectPath
  6. echo "成功进入目录:$projectPath"
  7. git stash
  8. git stash drop
  9. git reset
  10. git pull
  11. echo "拉取代码成功"
  12. pwd
  13. cd $projectPath
  14. sh /data/www/cockData/deploy/build_linux.sh
  15. echo "编译工程成功"
  16. # 删除日志
  17. # rm -f logs/*
  18. # echo "删除日志成功"
  19. supervisorctl restart egg
  20. echo "重启服务成功"
  21. echo "结束,此日志会落后git一个版本生效"