From e53ffd93a59edd117ce4e74af2c95dd4bcff41e9 Mon Sep 17 00:00:00 2001 From: brunosimon Date: Fri, 22 Dec 2017 13:41:21 +0100 Subject: [PATCH] :bug: Fix site not starting --- lib/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index ee9d6f5..70df752 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,7 +27,9 @@ class App this.setConfig() - if(this.config.server && !this.config.host) + // If host is not specified + // Start the site + if(!this.config.host) { this.setSite( () => @@ -43,6 +45,8 @@ class App ) } + // If not started as a server + // Start watching files if(!this.config.server) { this.setWatcher()