var Hapi = require('hapi');

var server = new Hapi.Server();
server.connection({ port: 3000 });

server.route({
    method: 'GET',
    path: '/',
    handler: function (request, reply) {
        reply('Hello, chirpy!');
    }
});

server.start(function () {
    console.log('Server running at:', server.info.uri);
});
var Hapi = require('hapi');

var server = new Hapi.Server();
server.connection({ port: process.env.PORT || 5000 });

server.route({
    method: 'GET',
    path: '/',
    handler: function (request, reply) {
        reply('Hello, chirpy!');
    }
});

server.start(function () {
    console.log('Server running at:', server.info.uri);
});
Use env port per default.
Use env port per default.
