Skip to content

Instantly share code, notes, and snippets.

@jaeh
Created April 30, 2013 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaeh/5491119 to your computer and use it in GitHub Desktop.
Save jaeh/5491119 to your computer and use it in GitHub Desktop.
this is just a gist, but it gives an idea
var express = require('express'),
http = require('http'),
app = module.exports = express(),
server = http.createServer(app),
io = require('socket.io').listen(server);
server.listen(app.get('port'), function () {
console.log("m-cms express server listening on port %d in %s mode", app.get('port'), app.get('env'));
cb(null);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment