flipover
TCP server and deployment system that flips from one deployment to another.
// server.jsvar flipover = childport = ; { { } var p = childport deploy} { }
var http = childport = ; childport
deploy.port
Port to listen on. Callbacks for new deployments must not be resolved until the server is listening on this port.
flipover(function (deploy, cb) {}, [function test (deploy, cb) {}])
Returns a flipover server.
Requires a function for you to write your deployment code. This function takes two arguments: a Deploy
instance and a callback which takes two arguments: error
and an instance of child_process.ChildProcess
which will be monitored and killed if need be.
Optionally you can also pass a test function which is used to validate the server is working and test it periodically.
FlipOver.listen(serverPort, adminPort, cb)
Listen.