mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
refactor(server) start
This commit is contained in:
parent
e25d526ac4
commit
00b30d4f19
1 changed files with 1 additions and 5 deletions
|
|
@ -95,11 +95,7 @@
|
|||
},
|
||||
|
||||
lHTTPServer = function() {
|
||||
if (expressApp)
|
||||
Server = http.createServer(expressApp);
|
||||
else
|
||||
Server = http.createServer(controller);
|
||||
|
||||
Server = http.createServer(expressApp || controller);
|
||||
Server.on('error', Util.log);
|
||||
Server.listen(lPort, lIP);
|
||||
lServerLog(lHTTP, lPort);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue