increase timeout to wait for es

This commit is contained in:
simon 2021-10-25 13:23:54 +07:00
parent 0ce5183056
commit 66f184b41b

4
run.sh
View File

@ -6,11 +6,11 @@ until curl "$ES_URL" -fs; do
echo "waiting for elastic search to start" echo "waiting for elastic search to start"
counter=$((counter+1)) counter=$((counter+1))
if [[ $counter -eq 12 ]]; then if [[ $counter -eq 12 ]]; then
# fail after 1 min # fail after 2 min
echo "failed to connect to elastic search, exiting..." echo "failed to connect to elastic search, exiting..."
exit 1 exit 1
fi fi
sleep 5 sleep 10
done done
python manage.py makemigrations python manage.py makemigrations