Skip to content

Commit

Permalink
Changed start point to use process.env.PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
ErickPetru committed Mar 25, 2017
1 parent 6357b2c commit d6c76a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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}`)
);
);

1 comment on commit d6c76a0

@ErickPetru
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bluemix toolchain: Delivery Pipeline deployed this commit to dev

Please sign in to comment.