From 08e734215e7f729f74a0d3ee9f0b670b15da32ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2EFernando=20S=C3=A1nchez?= Date: Thu, 4 Oct 2012 23:05:09 +0200 Subject: [PATCH] Changed port to detect ENV --- player.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/player.js b/player.js index dcfd6d6..d92ccfe 100644 --- a/player.js +++ b/player.js @@ -8,6 +8,8 @@ var express = require('express') , app = module.exports = express(); +var port = process.env.PORT || 8888; + var parser = new xml2js.Parser(); app.get('/', function(req,res){ @@ -83,4 +85,4 @@ app.get('/play', function(req,resp){ }); }); -app.listen(8888); +app.listen(port);