mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix command-line parsing with --keepalive.
This commit is contained in:
@@ -246,6 +246,7 @@ var startServer = function (options) {
|
||||
var nodeOptions = _.clone(options.nodeOptions);
|
||||
nodeOptions.push(path.join(options.bundlePath, 'main.js'));
|
||||
nodeOptions.push('--keepalive');
|
||||
nodeOptions.push('program.json');
|
||||
|
||||
var child_process = require('child_process');
|
||||
var proc = child_process.spawn(process.execPath, nodeOptions,
|
||||
|
||||
@@ -9,7 +9,7 @@ var url = require("url");
|
||||
|
||||
var connect = require('connect');
|
||||
var gzippo = require('gzippo');
|
||||
var argv = require('optimist').argv;
|
||||
var argv = require('optimist').boolean('keepalive').argv;
|
||||
var useragent = require('useragent');
|
||||
|
||||
var _ = require('underscore');
|
||||
@@ -144,7 +144,7 @@ var run = function () {
|
||||
|
||||
// read our control files
|
||||
var serverJson =
|
||||
JSON.parse(fs.readFileSync(path.join(serverDir, process.argv[2]), 'utf8'));
|
||||
JSON.parse(fs.readFileSync(path.join(serverDir, argv._[0]), 'utf8'));
|
||||
|
||||
var configJson =
|
||||
JSON.parse(fs.readFileSync(path.join(serverDir, 'config.json'), 'utf8'));
|
||||
|
||||
Reference in New Issue
Block a user