mod_wsgi force reload modules

后端 未结 4 912
醉梦人生
醉梦人生 2021-02-04 07:32

Is there a way to have mod_wsgi reload all modules (maybe in a particular directory) on each load?

While working on the code, it\'s very annoying to restart apache every

4条回答
  •  生来不讨喜
    2021-02-04 08:13

    The link:

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

    should be emphasised. It also should be emphaised that on UNIX systems daemon mode of mod_wsgi must be used and you must implement the code monitor described in the documentation. The whole process reloading option will not work for embedded mode of mod_wsgi on UNIX systems. Even though on Windows systems the only option is embedded mode, it is possible through a bit of trickery to do the same thing by triggering an internal restart of Apache from the code monitoring script. This is also described in the documentation.

提交回复
热议问题