Comparing version 0.6.0 to 0.6.1
@@ -41,3 +41,3 @@ /* | ||
forever.initialized = false; | ||
forever.root = path.join(process.env.HOME, '.forever'); | ||
forever.root = path.join(process.env.HOME || '/root', '.forever'); | ||
forever.config = new nconf.stores.File({ file: path.join(forever.root, 'config.json') }); | ||
@@ -288,5 +288,4 @@ forever.Forever = forever.Monitor = require('./forever/monitor').Monitor; | ||
getAllProcesses(function (processes) { | ||
var procs = /(\d+)/.test(target) | ||
? forever.findByIndex(target, processes) | ||
: forever.findByScript(target, processes); | ||
var procs = forever.findByIndex(target, processes) | ||
|| forever.findByScript(target, processes); | ||
@@ -293,0 +292,0 @@ if (procs && procs.length > 0) { |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever)", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -8,0 +8,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
292780
1866