diff options
| -rwxr-xr-x | jekyll-hook.js | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/jekyll-hook.js b/jekyll-hook.js index 78533cf..b78fc59 100755 --- a/jekyll-hook.js +++ b/jekyll-hook.js @@ -82,8 +82,9 @@ app.post('/hooks/jekyll/:branch', function(req, res) {  });  // Start server -app.listen(8080); -console.log('Listening on port 8080'); +var port = process.env.PORT || 8080; +app.listen(port); +console.log('Listening on port ' + port);  function run(file, params, cb) {      var process = spawn(file, params); | 
