2021-02-01
2021-02-01 本文已影响0人
无花无酒_3cd3
脚本
source /etc/profile
cnpm install --unsafe-perm
npm run build:sit
scp -r ./dist root@10.19.106.214:/u02/webapps
ssh root@10.19.106.214 sh<<EOF
source /etc/profile
/usr/local/nginx/sbin/nginx -s reload
后台java
source /etc/profile
mvn clean package -DskipTests -U -B -pl express-trace-admin -am
scp ./express-trace-admin/target/express-trace-admin-1.0.0.jar root@10.19.106.214:/data/express-trace
ssh root@10.19.106.214 sh << EOF
/data/express-trace/start.sh