diff --git a/cloudcmd.js b/cloudcmd.js index 33f467f1..37892631 100644 --- a/cloudcmd.js +++ b/cloudcmd.js @@ -128,13 +128,6 @@ } function init(){ - fs.watch(CONFIG_PATH, function(){ - /* every catch up - calling twice */ - setTimeout(function() { - readConfig(); - }, 1000); - }); - if(update) update.get(); @@ -174,6 +167,14 @@ } } + if(Config.server) + fs.watch(CONFIG_PATH, function(){ + /* every catch up - calling twice */ + setTimeout(function() { + readConfig(); + }, 1000); + }); + server.start({ appcache : appCacheProcessing, minimize : minimize,