mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
new server
This commit is contained in:
parent
8d7078a5d3
commit
1be5befd83
1 changed files with 7 additions and 7 deletions
14
server.js
14
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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue