From a2bdcc17b072017eed5e5cb0de172f4cc1e6a702 Mon Sep 17 00:00:00 2001 From: alessio Date: Thu, 18 Aug 2016 00:12:19 +0200 Subject: [PATCH] check app_bin before for launch run --- realize/watcher.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/realize/watcher.go b/realize/watcher.go index 5dfcf19..0db6e65 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -155,10 +155,14 @@ func (p *Project) build() { } func (p *Project) run(channel chan bool, wr *sync.WaitGroup) { - if p.Run { - LogSuccess(p.Name + ": Running..") - go p.GoRun(channel, wr) - LogSuccess(p.Name + ": Runned") + if p.Run{ + if p.Bin { + LogSuccess(p.Name + ": Running..") + go p.GoRun(channel, wr) + LogSuccess(p.Name + ": Runned") + }else{ + LogFail("Set 'app_run' to true") + } } return }