1
0
mirror of https://github.com/beego/bee.git synced 2024-11-24 18:30:53 +00:00

Added auto-detect appname

This commit is contained in:
Unknown 2013-09-11 18:41:36 -04:00
parent a655f78a4e
commit abee36f379
2 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,4 @@
{ {
"watch_imports": true,
"go_install": false, "go_install": false,
"watch_ext": [], "watch_ext": [],
"dir_structure":{ "dir_structure":{

3
run.go
View File

@ -21,6 +21,7 @@ import (
"runtime" "runtime"
"github.com/Unknwon/com" "github.com/Unknwon/com"
"github.com/Unknwon/hv"
) )
var cmdRun = &Command{ var cmdRun = &Command{
@ -66,8 +67,6 @@ func init() {
var appname string var appname string
var conf struct { var conf struct {
// Indicates whether to watch imports changes.
WatchImports bool `json:"watch_imports"`
// Indicates whether execute "go install" before "go build". // Indicates whether execute "go install" before "go build".
GoInstall bool `json:"go_install"` GoInstall bool `json:"go_install"`
WatchExt []string `json:"watch_ext"` WatchExt []string `json:"watch_ext"`