🐛 Fix site not starting

This commit is contained in:
brunosimon
2017-12-22 13:41:21 +01:00
parent c17b2659ea
commit e53ffd93a5
+5 -1
View File
@@ -27,7 +27,9 @@ class App
this.setConfig() this.setConfig()
if(this.config.server && !this.config.host) // If host is not specified
// Start the site
if(!this.config.host)
{ {
this.setSite( this.setSite(
() => () =>
@@ -43,6 +45,8 @@ class App
) )
} }
// If not started as a server
// Start watching files
if(!this.config.server) if(!this.config.server)
{ {
this.setWatcher() this.setWatcher()