mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(server) rm util
This commit is contained in:
parent
d6a4d61c9f
commit
5922b91824
1 changed files with 3 additions and 8 deletions
|
|
@ -6,15 +6,10 @@
|
|||
|
||||
http = require('http'),
|
||||
|
||||
Util = require(DIR_LIB + 'util'),
|
||||
middleware = require(DIR_LIB + 'cloudcmd'),
|
||||
|
||||
config = require(DIR_SERVER + 'config'),
|
||||
express = require(DIR_SERVER + 'express'),
|
||||
|
||||
tryRequire = require('tryrequire'),
|
||||
|
||||
io = tryRequire('socket.io', {log: true});
|
||||
io = require('socket.io');
|
||||
|
||||
/**
|
||||
* start server function
|
||||
|
|
@ -47,7 +42,7 @@
|
|||
server = http.createServer(app);
|
||||
|
||||
server.on('error', function(error) {
|
||||
Util.log(error.message);
|
||||
console.log(error.message);
|
||||
});
|
||||
|
||||
server.listen(port, ip);
|
||||
|
|
@ -60,6 +55,6 @@
|
|||
if (!config('ip'))
|
||||
ip = 'localhost';
|
||||
|
||||
Util.log('url: http://' + ip + ':' + port);
|
||||
console.log('url: http://' + ip + ':' + port);
|
||||
};
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue