2 Commits

Author SHA1 Message Date
Roman Shtylman
779ed39b4f 0.0.7 2015-01-10 21:04:35 -08:00
Roman Shtylman
8d78956355 use cluster module to handle auto restart on death
having some problems with docker auto restarts so we will do it in the
code for now
2015-01-10 21:02:45 -08:00
2 changed files with 15 additions and 3 deletions

View File

@@ -1,10 +1,22 @@
#!/usr/bin/env node
var cluster = require('cluster');
var debug = require('debug')('localtunnel');
var localenv = require('localenv');
if (cluster.isMaster) {
cluster.on('exit', function() {
debug('child died, restarting');
cluster.fork();
});
cluster.fork();
return;
}
require('stackup');
var log = require('bookrc');
var localenv = require('localenv');
var optimist = require('optimist');
var debug = require('debug')('localtunnel');
var argv = optimist
.usage('Usage: $0 --port [num]')

View File

@@ -2,7 +2,7 @@
"author": "Roman Shtylman <shtylman@gmail.com>",
"name": "localtunnel-server",
"description": "expose localhost to the world",
"version": "0.0.6",
"version": "0.0.7",
"repository": {
"type": "git",
"url": "git://github.com/shtylman/localtunnel-server.git"