mirror of
https://github.com/beego/bee.git
synced 2024-12-25 04:30:50 +00:00
Added auto-detect appname
This commit is contained in:
parent
a655f78a4e
commit
abee36f379
1
bee.json
1
bee.json
@ -1,5 +1,4 @@
|
||||
{
|
||||
"watch_imports": true,
|
||||
"go_install": false,
|
||||
"watch_ext": [],
|
||||
"dir_structure":{
|
||||
|
3
run.go
3
run.go
@ -21,6 +21,7 @@ import (
|
||||
"runtime"
|
||||
|
||||
"github.com/Unknwon/com"
|
||||
"github.com/Unknwon/hv"
|
||||
)
|
||||
|
||||
var cmdRun = &Command{
|
||||
@ -66,8 +67,6 @@ func init() {
|
||||
|
||||
var appname string
|
||||
var conf struct {
|
||||
// Indicates whether to watch imports changes.
|
||||
WatchImports bool `json:"watch_imports"`
|
||||
// Indicates whether execute "go install" before "go build".
|
||||
GoInstall bool `json:"go_install"`
|
||||
WatchExt []string `json:"watch_ext"`
|
||||
|
Loading…
Reference in New Issue
Block a user