Created
March 1, 2015 22:06
-
-
Save echohtp/058b0385d5b6240490ff to your computer and use it in GitHub Desktop.
node.js + hapi for modulus.io deployment.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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