Skip to content

Commit

Permalink
更新启动部署脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhuangwl committed Mar 19, 2022
1 parent d5be78e commit 729c233
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,6 @@ if [[ `pgrep -a java | grep northstar.jar | wc -l` > 0 ]]; then
kill `pgrep -a java | grep northstar.jar | awk '{print $1}'`
fi

# 停止前端进程
if [[ `pgrep node | wc -l` > 0 ]]; then
kill `pgrep node`
fi

# 移除原有目录
if [[ -n `ls ~ | grep northstar-monitor` ]]; then
rm -rf ~/northstar-monitor
rm -f dist.tar.gz
fi

# 不同的版本对应的前端部署包可能不同
cd ~ && wget https://gitee.com/dromara/northstar-monitor/attach_files/990941/download/dist.tar.gz
tar -xvf dist.tar.gz && rm -f dist.tar.gz
mkdir ~/northstar-monitor
mv dist ~/northstar-monitor/dist

cd ~/northstar
~/apache-maven-3.6.3/bin/mvn clean install -Dmaven.test.skip=true
\mv -f northstar-main/target/northstar-main*.jar ~/northstar.jar
2 changes: 0 additions & 2 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash

# 启动前端
cd ~/northstar-monitor/dist/ && nohup node bundle.js >~/ns-monitor.log &
# 启动服务
cd ~ && nohup java -Xlog:gc*:gc.log -Xmn1g -Xmx1g -DEMAIL0=$EMAIL0 -jar northstar.jar >~/ns.log &

0 comments on commit 729c233

Please sign in to comment.