Skip to content

Instantly share code, notes, and snippets.

@echohtp
Created March 1, 2015 22:06
Show Gist options
  • Save echohtp/058b0385d5b6240490ff to your computer and use it in GitHub Desktop.
Save echohtp/058b0385d5b6240490ff to your computer and use it in GitHub Desktop.
node.js + hapi for modulus.io deployment.
var Hapi = require(‘hapi’);
var sOptions = { host: '0.0.0.0', port: parseInt(process.env.PORT, 10) || 3000};
var server = new Hapi.Server();
server.connection(sOptions);
server.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment