mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
redis retry
This commit is contained in:
parent
b50f5404ff
commit
dbce3e443a
@ -51,13 +51,13 @@ while [ $n -lt 5 ]
|
|||||||
do
|
do
|
||||||
python manage.py migrate --no-input &&
|
python manage.py migrate --no-input &&
|
||||||
python manage.py inituser --username=root --password=rootroot --action=create_super_admin &&
|
python manage.py inituser --username=root --password=rootroot --action=create_super_admin &&
|
||||||
|
echo "from options.options import SysOptions; SysOptions.judge_server_token='$JUDGE_SERVER_TOKEN'" | python manage.py shell &&
|
||||||
break
|
break
|
||||||
n=$(($n+1))
|
n=$(($n+1))
|
||||||
echo "Failed to migrate, going to retry..."
|
echo "Failed to migrate, going to retry..."
|
||||||
sleep 8
|
sleep 8
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "from options.options import SysOptions; SysOptions.judge_server_token='$JUDGE_SERVER_TOKEN'" | python manage.py shell || exit 1
|
|
||||||
|
|
||||||
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