mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 08:32:08 +00:00
OJ启动时从ENV中读取JUDGE_SERVER_TOKEN并更新
This commit is contained in:
parent
c70e687de2
commit
04eae5f4b4
@ -28,6 +28,8 @@ do
|
||||
sleep 8
|
||||
done
|
||||
|
||||
echo "from options.options import SysOptions; SysOptions.judge_server_token=$JUDGE_SERVER_TOKEN" | pg shell || exit 1
|
||||
|
||||
cp data/public/avatar/default.png /data/public/avatar
|
||||
chown -R nobody:nogroup $DATA $APP/dist
|
||||
exec supervisord -c /app/deploy/supervisord.conf
|
||||
|
Loading…
Reference in New Issue
Block a user