feature(server) exports.start -> module.exports

This commit is contained in:
coderaiser 2014-09-15 10:45:54 -04:00
parent 5af958465b
commit 7d93c9930c
2 changed files with 3 additions and 5 deletions

View file

@ -61,7 +61,7 @@
writeLogsToFile();
}
server.start();
server();
}
function readConfig(callback) {

View file

@ -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;
})();