You run the application with command bee run
and it supports config file like this.
bee
command watch file change default by file extension. You can see from the source code
var watchExts = []string{".go"}
. It means bee
will watch the file with extension .go
, so if .go
file change it will auto restarting.
If you want bee
command to watch the conf/app.conf
file, you need to make a file bee.json
at your app directory and the content should like this:
{
"version": 0,
"gopm": {
"enable": false,
"install": false
},
"go_install": false,
"watch_ext": [.conf],
"dir_structure": {
"watch_all": false,
"controllers": "",
"models": "",
"others": []
},
"cmd_args": [],
"envs": [],
"database": {
"driver": "mysql"
}
}