doall.sh 759 B

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