From 1be5befd833317d144233dda53a31bb3391599d3 Mon Sep 17 00:00:00 2001 From: node Date: Thu, 5 Jul 2012 06:37:40 +0000 Subject: [PATCH] new server --- server.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server.js b/server.js index 83fe8705..9e704d81 100644 --- a/server.js +++ b/server.js @@ -183,19 +183,19 @@ CloudServer.init=(function(){ console.log('current dir: ' + process.cwd()); console.log('server dir: ' + lServerDir); process.chdir(lServerDir); - console.log(process.cwd()); + var lConfig={ "cache" : {"allowed" : true}, "minification" : { - "js" : false, - "css" : false, - "html" : false, - "img" : false + "js" : true, + "css" : true, + "html" : true, + "img" : true } }; try{ console.log('reading configureation file config.json...'); - lConfig=require('./config.json'); + lConfig=require('./config'); console.log('config.json readed'); }catch(pError){ console.log('warning: configureation file config.json not found...\n' + @@ -681,4 +681,4 @@ CloudServer.sendResponse = function(pHead, pData,pName){ } }; -CloudServer.start(); +CloudServer.start(); \ No newline at end of file