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