doall.sh 846 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # exe in ~/
  3. # 0 push & rebase
  4. cd zd_code
  5. git pull
  6. # 1 build
  7. cd p2p-back
  8. ./build.sh
  9. cd ../p2p-front
  10. ./build.sh
  11. # 2 复制test环境配置文件:
  12. # cp -Rf /root/configs/manager_classes/* /root/apache-tomcat-8.5.33/webapps/fortunet-manager/WEB-INF/classes
  13. # cp -Rf /root/configs/api_classes/* /root/apache-tomcat-8.5.33/webapps/fortunet-api/WEB-INF/classes
  14. # cp -Rf /root/configs/investpay_classes/* /root/apache-tomcat-8.5.33/webapps/fortunet-investpay/WEB-INF/classes
  15. # cp -Rf /root/configs/front_classes/* /root/apache-tomcat-8.5.33/webapps/p2p-front/WEB-INF/classes
  16. sh /root/bin/apache-tomcat-8.5.35/bin/catalina.sh stop
  17. # 保险起见,再kill一次
  18. kill -9 `ps -ef |grep tomcat | awk '{print $2,$3}'`
  19. # start
  20. sh /root/bin/apache-tomcat-8.5.35/bin/catalina.sh start
  21. tail -f /root/bin/apache-tomcat-8.5.35/logs/catalina.out