This commit is contained in:
wangwei01 2019-07-26 11:24:05 +08:00
commit a76b6a20eb
9 changed files with 24 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
bin
target

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "third_party/game2002api"]
path = third_party/game2002api
url = git@git.kingsome.cn:server/game2002api.git

0
bin/.gitkeep Normal file
View File

1
bin/game2002_rankserver.py Symbolic link
View File

@ -0,0 +1 @@
../third_party/game2002api/tools/rankserver/app.py

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

1
reload.sh Normal file
View File

@ -0,0 +1 @@
echo 'success'

9
restart.sh Executable file
View File

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

0
target/.gitkeep Normal file
View File

1
third_party/game2002api vendored Submodule

@ -0,0 +1 @@
Subproject commit a0b5efdba5b9103ba2047cbedc6e1e0ef9126851