beego / bee

Bee is a tool for helping develop with beego app framework.
Apache License 2.0
1.44k stars 920 forks source link

How to use bee.json? #819

Open curiosport opened 2 years ago

curiosport commented 2 years ago

I'm not sure if the bee.json file should be modified before compiling or if it should be used as an external file after compiling because I tried both as the following content and have not been able to get it to work:

{
    "version": 0,
    "go_install": false,
    "watch_ext": [".go"],
    "watch_ext_static": [".conf", ".html", ".tpl", ".js", ".css"],
    "dir_structure": {
        "watch_all": false,
        "controllers": "",
        "models": "",
        "others": []
    },
    "cmd_args": [],
    "envs": [],
    "database": {
        "driver": "mysql"
    },
    "enable_reload": true
}

My intention is to have bee restart (not recompile) the server every time a .conf file is modified.

How can I achieve this?