yaml app name fixed

This commit is contained in:
alessio 2016-08-18 09:57:02 +02:00
parent f6acb1f893
commit 294fef83d5
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import (
type Project struct {
reload time.Time
base string
Name string `yaml:"appName,omitempty"`
Name string `yaml:"app_name,omitempty"`
Path string `yaml:"app_path,omitempty"`
Main string `yaml:"app_main,omitempty"`
Run bool `yaml:"app_run,omitempty"`

View File

@ -115,7 +115,7 @@ func (p *Project) Watching() {
}
if _, err := os.Stat(event.Name); err == nil {
i := strings.Index(event.Name, filepath.Ext(event.Name))
log.Println(green(p.Name+":"), event.Name[:i])
log.Println(bluel(p.Name+": File changed ->"), bluel(event.Name[:i]))
// stop and run again
close(channel)
@ -174,7 +174,7 @@ func (p *Project) run(channel chan bool, wr *sync.WaitGroup) {
}
}
} else {
LogFail("Set 'appRun' to true for launch run")
LogFail("Set 'app_run' to true for launch run")
}
}
return