mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
feature(server) exports.start -> module.exports
This commit is contained in:
parent
5af958465b
commit
7d93c9930c
2 changed files with 3 additions and 5 deletions
|
|
@ -61,7 +61,7 @@
|
|||
writeLogsToFile();
|
||||
}
|
||||
|
||||
server.start();
|
||||
server();
|
||||
}
|
||||
|
||||
function readConfig(callback) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
* start server function
|
||||
*
|
||||
*/
|
||||
function start() {
|
||||
module.exports = function() {
|
||||
var port, ip,
|
||||
HTTP = 'http://',
|
||||
config = main.config;
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
|
||||
if (config.server)
|
||||
createServer(port, ip, HTTP);
|
||||
}
|
||||
};
|
||||
|
||||
function createServer(port, ip, protocol, callback) {
|
||||
var server, app, respondApp,
|
||||
|
|
@ -201,6 +201,4 @@
|
|||
return controller.bind(null, dir);
|
||||
};
|
||||
|
||||
exports.start = start;
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue