Skip to content

Commit

Permalink
Fix port
Browse files Browse the repository at this point in the history
  • Loading branch information
leandono committed Nov 24, 2014
1 parent 080114a commit d34076e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
@@ -1,7 +1,6 @@
var Hapi = require('hapi');
var port = (Number(process.env.PORT) || 8000);

var server = new Hapi.Server(port, 'localhost');
var server = new Hapi.Server(~~process.env.PORT || 8000, '0.0.0.0');

server.route({
method: 'GET',
Expand All @@ -16,4 +15,6 @@ server.route({
});

// Start the server
server.start();
server.start(function () {
console.log('Server started at [' + server.info.uri + ']');
});

0 comments on commit d34076e

Please sign in to comment.