1234567891011121314151617181920212223 |
- #!/bin/bash
- # 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/apache-tomcat-8.5.33/bin/catalina.sh stop
- # 保险起见,再kill一次
- kill -9 `ps -ef |grep tomcat | awk '{print $2,$3}'`
- # start
- sh /root/apache-tomcat-8.5.33/bin/catalina.sh start
|