Skip to content Skip to sidebar Skip to footer

Restart Gunicorn_django Via Fabric

I'm building a Django application and I decided to investigate Fabric for automating deployment. I've got it mostly working, but it fails at the last step, and I can't seem to puzz

Solution 1:

Didn't ever resolve this as such, but I finally knuckled down and picked up Supervisor. As it turned out, Supervisor was pretty simple to use and thanks to this blog post I was able to puzzle it out quite quickly. Just thought I'd post this in case someone else has the same kind of issue and stumbles across this page.

Solution 2:

I was facing this issue too. I waited for few seconds between killing and restarting the gunicorn process and it seems to run fine for now.

kill_running_gunicorn_process()
time.sleep(10)
start_gunicorn_process()

Post a Comment for "Restart Gunicorn_django Via Fabric"