yaml app name fixed
This commit is contained in:
parent
f6acb1f893
commit
294fef83d5
@ -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"`
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user