adds -c to forever call in cli to fix win bug
This commit is contained in:
parent
7a754b2ac1
commit
10e63133f4
1 changed files with 2 additions and 2 deletions
4
cli
4
cli
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue