From 042fc1f49ab95b09e4fb3180e79370d200bf1ace Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Thu, 15 Oct 2015 23:53:46 +0800 Subject: [PATCH] env PORT --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b1146ac..ddf33d2 100644 --- a/index.js +++ b/index.js @@ -211,4 +211,4 @@ app.get("/tracks/:artist/:album/:track", function (req, res, next) { }); app.use("/tracks", express.static("music")); -app.listen(8080); +app.listen(process.env.PORT || 8080);