1
This commit is contained in:
commit
a76b6a20eb
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bin
|
||||||
|
target
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal 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
0
bin/.gitkeep
Normal file
1
bin/game2002_rankserver.py
Symbolic link
1
bin/game2002_rankserver.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../third_party/game2002api/tools/rankserver/app.py
|
7
boundle.sh
Executable file
7
boundle.sh
Executable 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
|
9
restart.sh
Executable file
9
restart.sh
Executable 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
0
target/.gitkeep
Normal file
1
third_party/game2002api
vendored
Submodule
1
third_party/game2002api
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a0b5efdba5b9103ba2047cbedc6e1e0ef9126851
|
Loading…
x
Reference in New Issue
Block a user