diff --git a/server.js b/server.js index cb21fc15..2b72399e 100644 --- a/server.js +++ b/server.js @@ -217,9 +217,10 @@ CloudServer.init=(function(){ * not created, just init and * all logs writed to screen */ - if(process.argv[1]==='testing'){ + console.log(process.argv[2]); + if(process.argv[2]==='test'){ CloudServer.Config.server=false; - CloudServer.logs=true; + CloudServer.Config.logs=true; } if(CloudServer.Config.logs){ diff --git a/test/test.sh b/test/test.sh index 71405a32..e509d61e 100644 --- a/test/test.sh +++ b/test/test.sh @@ -7,5 +7,5 @@ jshint --config ./.jshintrc ./lib/cloudfunc.js ./lib/server/minify.js ./lib/clie echo "jshint ./package.json ./config.json" jshint --config ./.jshintrc ./package.json ./config.json npm i uglify-js clean-css html-minifier css-b64-images -node server.js testing +node server.js test ls ./min \ No newline at end of file