python - How to have Upstart redirect when Gunicorn crashes -
i have django website deployed using gunicorn 0.17.0 launched upstart on ubuntu 12.04 , uses nginx/1.1.19 static media. when django code has bug, gunicorn raises gunicorn.errors.haltserver , keeps crashing , getting launched 1 time again , again. way find out when see log getting huge. , have stop gunicorn service manually. delete huge log file. debug , run again.
my question is: best way approach crashing , getting launched again? know launching automatically point of upstart in case, doesn't create sense launch gunicorn 1 time again when crashes. can upstart stop launching gunicorn when raises error? , launch service redirects user different page on website? recommend?
here gunicorn log section keeps getting repeated: https://github.com/erasmose/kart/blob/master/kart/issues/kart_gunicorn_log.txt
thanks, eras
python django gunicorn upstart
No comments:
Post a Comment