OJ启动时从ENV中读取JUDGE_SERVER_TOKEN并更新

This commit is contained in:
zema1 2017-11-30 10:14:51 +08:00
parent c70e687de2
commit 04eae5f4b4

View File

@ -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