Skip to content

Instantly share code, notes, and snippets.

@bcurren
Created July 26, 2010 22:56
Show Gist options
  • Save bcurren/491401 to your computer and use it in GitHub Desktop.
Save bcurren/491401 to your computer and use it in GitHub Desktop.
db.open(function(p_db) {
var agent_smith = new AgentSmith();
agent_smith.init(db, function() {
http.createServer(function(req, res) {
try {
agent_smith.serveRequest(req, res);
} catch(e) {
agent_smith.handleError(req, res, e);
}
}).listen(config.listen_port);
});
sys.puts('Tracking server running at http://*:' + config.listen_port + '/tracking_pixel.gif');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment