openerp - What text editors does --dev reload with work -
i'm following odoo's documentation use --dev all
parameter when run odoo-bin
, in order have python models updated when change source code without me having restart server. according documentation, reload
flag (which part of all
) doesn't work text editors. i've been using sublime text, , doesn't seem work because model changes don't take effect until restart server. there good, commonly used text editor work reload
parameter, or there list of text editors work it?
if running odoo command line via standard ./odoo-bin --dev reload
command should not have issues long have libs setup.
make sure monitor log errors. requires watchdog
library installed via pip install watchdog
. take @ (currently line 943) of core files https://github.com/odoo/odoo/blob/10.0/odoo/service/server.py see how dev reload works:
def start(preload=none, stop=false): ... watcher = none if 'reload' in config['dev_mode']: if watchdog: watcher = fswatcher() watcher.start() else: _logger.warning("'watchdog' module not installed. code autoreload feature disabled") if 'werkzeug' in config['dev_mode']: server.app = debuggedapplication(server.app, evalex=true)
Comments
Post a Comment