mod_wsgi强制重新加载模块 [英] mod_wsgi force reload modules
本文介绍了mod_wsgi强制重新加载模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有办法让mod_wsgi在每次加载时重新加载所有模块(也许在特定目录中)?
Is there a way to have mod_wsgi reload all modules (maybe in a particular directory) on each load?
在处理代码时,每次更改某些内容时都要重新启动apache是非常烦人的.到目前为止,我发现的唯一选择是将modname = reload(modname)
放在每次导入的下面.但这也很烦人,因为这意味着我将不得不稍后再将其全部删除..
While working on the code, it's very annoying to restart apache every time something is changed. The only option I've found so far is to put modname = reload(modname)
below every import.. but that's also really annoying since it means I'm going to have to go through and remove them all at a later date..
推荐答案
mod_wsgi 重新加载代码是答案的最佳选择.
The mod_wsgi documentation on code reloading is your best bet for an answer.
这篇关于mod_wsgi强制重新加载模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文