1, 使用bench
bench set-config developer_mode 1
bench set-config --global developer_mode 1
2,手动修改配置文件(sites/common_site_config.json)
{
"auto_update": false,
"background_workers": 1,
"developer_mode": 1,
"file_watcher_port": 6787,
"frappe_user": "frappe",
"gunicorn_workers": 9,
"rebase_on_pull": false,
"redis_cache": "redis://localhost:13000",
"redis_queue": "redis://localhost:11000",
"redis_socketio": "redis://localhost:12000",
"restart_supervisor_on_update": false,
"restart_systemd_on_update": false,
"serve_default_site": true,
"shallow_clone": true,
"socketio_port": 9000,
"webserver_port": 8000
}