This commit is contained in:
aozhiwei 2020-03-18 17:45:27 +08:00
commit 52f77f724f
11 changed files with 24 additions and 0 deletions

0
.gitignore vendored Normal file
View File

3
.gitmodules vendored Normal file
View File

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

0
bin/.gitkeep Normal file
View File

View File

@ -0,0 +1 @@
../third_party/game2004api/tools/rankserver/rankserver_cmd.py

1
bin/game2004rank.py Symbolic link
View File

@ -0,0 +1 @@
../third_party/game2004api/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 local_packages reload.sh restart.sh

1
local_packages Symbolic link
View File

@ -0,0 +1 @@
third_party/game2004api/tools/local_packages

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 game2004_rankserver|grep -v grep
if [ $? -eq 0 ]; then
ps -ef|grep python|grep game2004_rankserver|grep -v grep|awk '{print $2}'|xargs kill -9
fi
cd bin
nohup python3 game2004_rankserver.py >> game2004_rankserver.out 2>&1 &

0
target/.gitkeep Normal file
View File

1
third_party/game2004api vendored Submodule

@ -0,0 +1 @@
Subproject commit 75ed033bebef1e44ffd1ddb6fc3b3bed0cb43c6a