Skip to content

Instantly share code, notes, and snippets.

@pgte
Created December 18, 2010 12:04
Show Gist options
  • Save pgte/746445 to your computer and use it in GitHub Desktop.
Save pgte/746445 to your computer and use it in GitHub Desktop.
fuguer.js
var http = require('http');
module.exports = http.createServer(function(req, res) {
res.writeHead(200);
res.end('Hello World');
});
var fugue = require('fugue');
if (!process.argv[2]) {
console.log('please indicate an app path');
return;
}
var app_path = process.argv[2];
var app = require(app_path);
fugue.start(app, 4000, null, 2, {verbose: false});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment