Skip to content

Instantly share code, notes, and snippets.

@FLYBYME
Created August 17, 2011 22:39
Show Gist options
  • Save FLYBYME/1152826 to your computer and use it in GitHub Desktop.
Save FLYBYME/1152826 to your computer and use it in GitHub Desktop.
main server
var cluster = require('cluster')
var express = require('express');
var app = express.createServer();
app.configure(function() {
app.use(express.vhost('wiyc.info', require('./apps/wiyc.info/app')));
})
cluster(app).listen(80);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment