mirror of
https://github.com/bitinflow/server.git
synced 2026-04-30 10:54:01 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7d0effa90 | ||
|
|
4985175968 |
16
bin/server
16
bin/server
@@ -1,21 +1,9 @@
|
|||||||
#!/usr/bin/env node
|
#!/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');
|
require('stackup');
|
||||||
var log = require('bookrc');
|
var log = require('bookrc');
|
||||||
|
var localenv = require('localenv');
|
||||||
|
var debug = require('debug')('localtunnel');
|
||||||
var optimist = require('optimist');
|
var optimist = require('optimist');
|
||||||
|
|
||||||
var argv = optimist
|
var argv = optimist
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"author": "Roman Shtylman <shtylman@gmail.com>",
|
"author": "Roman Shtylman <shtylman@gmail.com>",
|
||||||
"name": "localtunnel-server",
|
"name": "localtunnel-server",
|
||||||
"description": "expose localhost to the world",
|
"description": "expose localhost to the world",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/shtylman/localtunnel-server.git"
|
"url": "git://github.com/shtylman/localtunnel-server.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user