mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
OJ启动时从ENV中读取JUDGE_SERVER_TOKEN并更新
This commit is contained in:
parent
c70e687de2
commit
04eae5f4b4
@ -28,6 +28,8 @@ do
|
|||||||
sleep 8
|
sleep 8
|
||||||
done
|
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
|
cp data/public/avatar/default.png /data/public/avatar
|
||||||
chown -R nobody:nogroup $DATA $APP/dist
|
chown -R nobody:nogroup $DATA $APP/dist
|
||||||
exec supervisord -c /app/deploy/supervisord.conf
|
exec supervisord -c /app/deploy/supervisord.conf
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user