From 5745def7e93ae433acf48b086737ac31095368d5 Mon Sep 17 00:00:00 2001 From: Joanna Kao Date: Tue, 3 Jan 2017 12:58:37 -0500 Subject: [PATCH] modify port assignment --- bin/server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/server b/bin/server index 7debc4d8..d3e14391 100755 --- a/bin/server +++ b/bin/server @@ -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);