在odoo 8服务器中,“-自动重新加载"工作时 [英] In odoo 8 server "--auto-reload" when work

查看:135
本文介绍了在odoo 8服务器中,“-自动重新加载"工作时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 实际上是在启动odoo 8服务器的命令中.
  • 它将提供-自动重新加载"选项
  • 但是实际上我不知道它是如何工作的以及何时工作.
  • 请给我一些指导原则

推荐答案

通常,如果您更改python代码,则需要重新启动服务器才能应用新更改.

Normally if you change your python code means, you need to restart the server in order to apply the new changes.

-启用自动重载参数意味着您无需重新启动服务器.它启用了自动重新加载python文件和xml文件的功能,而无需重新启动服务器.它需要 pyinotify .它是用于监视文件系统更改的Python模块.

--auto-reload parameter is enabled means, you don't need to restart the server. It enables auto-reloading of python files and xml files without having to restart the server. It required pyinotify. It is a Python module for monitoring filesystems changes.

只需在配置文件中添加--auto-reload即可.默认情况下,该值为"false".您无需传递任何其他参数. --auto-reload就足够了.如果一切设置正常,您将获得

Just add --auto-reload in your configuration file. By default the value will be "false". You don't need to pass any extra arguments. --auto-reload is enough. If everything setup and works properly you will get

openerp.service.server: Watching addons folder /opt/odoo/v8.0/addons
openerp.service.server: AutoReload watcher running

服务器日志中的

.不要忘记安装pyinotify软件包.

in the server log. Don't forget to install pyinotify package.

这篇关于在odoo 8服务器中,“-自动重新加载"工作时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆