Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
modify port assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
joannaskao committed Jan 3, 2017
1 parent da88c0b commit 5745def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/server
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var dotenv = require("dotenv").config({silent: true}),
logger = require("../lib/logger/"),
server = require("../server/");

var port = +process.argv[2] || 8888;
var port = process.env.PORT || +process.argv[2] || 8888;

server.listen(port);

Expand Down

0 comments on commit 5745def

Please sign in to comment.