Skip to content

Commit

Permalink
fix(main): port respect
Browse files Browse the repository at this point in the history
  • Loading branch information
wzr1337 committed Mar 10, 2017
1 parent d04686e commit 8bf14ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var server:WebServer;

var run = (port?:number):Promise<void> => {
return new Promise<void>((resolve, reject) => {
server = new WebServer(cla.port);
server = new WebServer(port || cla.port);
server.init(); // need to init

server.app.get(BASEURI, (req: express.Request, res: express.Response, next: express.NextFunction) => {
Expand Down

0 comments on commit 8bf14ce

Please sign in to comment.