This commit is contained in:
aozhiwei 2019-08-25 12:51:38 +08:00
parent 0ad0329d28
commit d94e4efed5
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 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 python|grep gamepay_backend|grep -v grep
if [ $? -eq 0 ]; then
ps -ef|grep python|grep gamepay_backend|grep -v grep|awk '{print $2}'|xargs kill -9
fi
cd bin
nohup python gamepay_backend.py >> gamepay_backend.out 2>&1 &