From 294fef83d529e24814600c7d0ad8bccae1d4fb8d Mon Sep 17 00:00:00 2001 From: alessio Date: Thu, 18 Aug 2016 09:57:02 +0200 Subject: [PATCH] yaml app name fixed --- realize/project.go | 2 +- realize/watcher.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/realize/project.go b/realize/project.go index bc9674d..e91d3c4 100644 --- a/realize/project.go +++ b/realize/project.go @@ -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"` diff --git a/realize/watcher.go b/realize/watcher.go index da9511f..637f19c 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -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