mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2025-01-15 21:12:54 +00:00
fix ci
This commit is contained in:
parent
0dd7bc2ae5
commit
0cf81ff8d8
@ -5,6 +5,7 @@ services:
|
||||
before_install:
|
||||
- sudo mkdir -p /data/log
|
||||
- pip install requests
|
||||
- echo "token" > token.txt
|
||||
script:
|
||||
- docker pull qduoj/judge_server
|
||||
- cp docker-compose.example.yml docker-compose.yml
|
||||
|
@ -60,7 +60,7 @@ def server_info():
|
||||
def get_token():
|
||||
try:
|
||||
with open(TOKEN_FILE_PATH, "r") as f:
|
||||
return f.read()
|
||||
return f.read().strip()
|
||||
except IOError:
|
||||
raise JudgeClientError("token.txt not found")
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
PLEASE_USE_YOUR_OWN_TOKEN
|
Loading…
x
Reference in New Issue
Block a user