Skip to content

Instantly share code, notes, and snippets.

@mlakkadshaw
Last active January 1, 2016 06:27
Show Gist options
  • Save mlakkadshaw/38fcec3eaf1caf126527 to your computer and use it in GitHub Desktop.
Save mlakkadshaw/38fcec3eaf1caf126527 to your computer and use it in GitHub Desktop.
var http = require( 'http' );
module.exports.bootstrap = function(cb) {
//If the environment is production, then listen on port 80
if(sails.config.environment === "production") {
http.createServer( sails.hooks.http.app ).listen( 80 );
}
cb();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment