How can I get a seamless (minimal or no site downtime) update of code in my Django project? When I pull new code any templates will be seen right away, but the actual python code is cached in the web server. Restarting the Apache process with 'apache2/bin/restart' works fine, but visitors get a 500 Server Error for a few seconds. How can I get seamless or quick code updates, under WSGI/Apache on Webfaction, with Django? asked 01 Nov '13, 18:09 brycenesbitt |
Several approaches to this are available in the mod_wsgi wiki: ReloadingSourceCode Hope that helps! answered 01 Nov '13, 18:21 seanf Yeah, I read that, and found myself asking "is it really that hard"? I don't know the answer even to the first question: am I running in daemon mode? My hope is there are better webfaction specific instructions that would not kill an entire tree if planted.
(01 Nov '13, 23:58)
brycenesbitt
Yes, you're running in daemon mode. Usually this is just a matter of touching your WSGI file:
More information is available here.
(02 Nov '13, 00:10)
ryans ♦♦
@ryans I don't seem to have a wsgi file in this particular project, nor a 'mysite.settings' file. Do you mean: $HOME/webapps/xxxxxx/myproject/yyyyyyy/wsgi.py
(05 Nov '13, 12:42)
brycenesbitt
Yes, sorry -
(05 Nov '13, 12:47)
seanf
|