adds -c to forever call in cli to fix win bug

This commit is contained in:
Todd Treece 2015-08-17 18:19:19 -04:00
parent 7a754b2ac1
commit 10e63133f4

4
cli
View file

@ -10,7 +10,7 @@ var spawn = require('child_process').spawn,
function start() {
var child = spawn('forever', ['start', 'index.js', '-s'], {
var child = spawn('forever', ['start', '-c', 'node', 'index.js', '-s'], {
cwd: __dirname,
env: process.env,
detached: true
@ -25,7 +25,7 @@ function start() {
function stop() {
var child = spawn('forever', ['stop', 'index.js', '-s'], {
var child = spawn('forever', ['stop', '-c', 'node', 'index.js', '-s'], {
cwd: __dirname,
env: process.env,
detached: true