test bug fixed, not it's writes logs to screen and do not create server

This commit is contained in:
coderaiser 2012-07-06 11:15:15 -04:00
parent 2f7e4a5228
commit 3a0bf89ca8
2 changed files with 4 additions and 3 deletions

View file

@ -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){

View file

@ -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