This commit is contained in:
aozhiwei 2022-03-02 14:16:04 +08:00
parent f9e61f2ac2
commit c9f19a9b10
3 changed files with 16 additions and 0 deletions

7
boundle.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
tag_name=`git status |grep '# On branch '|sed 's/# On branch //g'`
dir_name=`basename $PWD`
package_name=${dir_name}.tar.gz
tar --exclude=*.git -chzf target/${package_name} bin config bin web3server reload.sh restart.sh

0
reload.sh Normal file
View File

9
restart.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
ps -ef|grep node|grep web3server|grep -v grep
if [ $? -eq 0 ]; then
ps -ef|grep node|grep web3server|grep -v grep|awk '{print $2}'|xargs kill -9
fi
cd bin
nohup node ../web3server/app.js >> web3server.out 2>&1 &