Skip to content

Instantly share code, notes, and snippets.

@tsmith
tsmith / gist:1009502
Created June 5, 2011 22:34
node-control cluster and fallback config concept
/*global console, require, process */
var path = require('path'),
control = require('control'),
task = control.task;
function configure(addresses) {
var config;
config = {
user: 'mylogin'
@tsmith
tsmith / gist:758517
Created December 29, 2010 13:04
three minute cloud server illustration with node-control
/*global require */
// Illustration-only for a mailing list discussion - not a recommended pattern
// for production because of root usage. Untested.
// http://groups.google.com/group/nodejs/browse_thread/thread/b41ad5d727d8dff8
// usage example:
// node thisfile.js local server:create
// node thisfile.js local server:stop <IP>
// node thisfile.js local server:start <IP>