diff --git a/wrapper.sh b/wrapper.sh index 34eb3f0..d91446a 100755 --- a/wrapper.sh +++ b/wrapper.sh @@ -13,6 +13,9 @@ else sudo -u pauser gunicorn --bind=0.0.0.0:80 --workers=1 --threads=1 main:app --env ENV="development" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --enable-stdio-inheritance --reload fi +# warm the cache to see if this helps with odd restart 404s +curl -sf http://localhost/health + # this should never be invoked unless gunicorn fails -- in that case, at least # we will keep the container can login by hand and check the issue/error sleep 99999