From d6c76a0b77e5044e00675e03112832859eb56c75 Mon Sep 17 00:00:00 2001 From: Erick Eduardo Petrucelli Date: Sat, 25 Mar 2017 16:31:15 -0300 Subject: [PATCH] Changed start point to use process.env.PORT --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 30e2908..5c4f336 100644 --- a/src/index.js +++ b/src/index.js @@ -1,9 +1,10 @@ 'use strict'; const app = require('./app'); -const port = app.get('port'); +const port = process.env.PORT ? process.env.PORT : app.get('port'); + const server = app.listen(port); server.on('listening', () => console.log(`Feathers application started on ${app.get('host')}:${port}`) -); \ No newline at end of file +);