代码拉取完成,页面将自动刷新
同步操作将从 java110/MicroCommunity 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env bash
git pull origin master
mvn clean install -Dmaven.test.skip=true
mvn package -Dmaven.test.skip=true
# 刷hosts
echo '172.17.0.2 dev.java110.com' >> /etc/hosts
echo '172.17.0.2 dev.zk.java110.com' >> /etc/hosts
echo '172.21.0.6 dev.redis.java110.com' >> /etc/hosts
echo '172.17.0.2 dev.kafka.java110.com' >> /etc/hosts
echo '172.21.0.15 dev.db.java110.com' >> /etc/hosts
echo '172.17.0.8 api.java110.com' >> /etc/hosts
if [[ -a ~/jar_deploy ]];then
echo "存在文件jar_deploy";
rm -rf jar_deploy
fi;
mkdir jar_deploy
# 启动eureka
cp eureka/target/eureka.jar ./jar_deploy/eureka.jar
cp Api/target/Api.jar ./jar_deploy/Api.jar
cp CodeService/target/CodeService.jar ./jar_deploy/CodeService.jar
cp CommentService/target/CommentService.jar ./jar_deploy/CommentService.jar
cp CommonService/target/CommonService.jar ./jar_deploy/CommonService.jar
cp CommunityService/target/CommunityService.jar ./jar_deploy/CommunityService.jar
cp FeeService/target/FeeService.jar ./jar_deploy/FeeService.jar
cp JobService/target/JobService.jar ./jar_deploy/JobService.jar
cp LogService/target/LogService.jar ./jar_deploy/LogService.jar
cp OrderService/target/OrderService.jar ./jar_deploy/OrderService.jar
cp StoreService/target/StoreService.jar ./jar_deploy/StoreService.jar
cp UserService/target/UserService.jar ./jar_deploy/UserService.jar
cp WebService/target/WebService.jar ./jar_deploy/WebService.jar
nohup java -jar -Dspring.profiles.active=dev jar_deploy/eureka.jar > eureka.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/Api.jar > Api.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/CodeService.jar > CodeService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/CommentService.jar > CommentService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/CommonService.jar > CommonService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/CommunityService.jar > CommunityService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/FeeService.jar > FeeService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/JobService.jar > JobService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/LogService.jar > LogService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/OrderService.jar > OrderService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/StoreService.jar > StoreService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/UserService.jar > UserService.log 2>&1 &
nohup java -jar -Dspring.profiles.active=dev jar_deploy/WebService.jar > WebService.log 2>&1 &
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。