简体   繁体   English

在Apache上使用mod_wsgi,python和django进行热部署

[英]Hot deployment using mod_wsgi,python and django on Apache

I have setup an Apache server with mod_wsgi, python_sql, mysql and django. 我已经设置了一个带有mod_wsgi,python_sql,mysql和django的Apache服务器。 Everything works fine, except the fact that if I make some code changes, they do not reflect immidiately, though I thing that everything is compiled on the fly when it comes to python/mod_wsgi. 一切正常,除了事实,如果我做了一些代码更改,他们不会立即反映,虽然我认为一切都是动态编译的python / mod_wsgi。

I have to shut down the server and come back again to see the changes. 我必须关闭服务器并再次返回以查看更改。

Can someone point me to how hot-deployment can be achieved with the above setup?? 有人能指出我如何通过上述设置实现热部署?

Thanks, 谢谢,

Neeraj Neeraj

This is covered by mod_wsgi documentation. mod_wsgi文档涵盖了这一点。 See: 看到:

http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode

只是触摸wsgi文件总是为我工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM