normalize directory path in cli
This commit is contained in:
parent
cdd6ed298e
commit
ab8d3d8a6e
1 changed files with 2 additions and 2 deletions
4
cli
4
cli
|
|
@ -11,7 +11,7 @@ var spawn = require('child_process').spawn,
|
|||
function start() {
|
||||
|
||||
var child = spawn('forever', ['start', '-c', 'node', 'index.js', '-s'], {
|
||||
cwd: __dirname,
|
||||
cwd: path.normalize(__dirname),
|
||||
env: process.env,
|
||||
detached: true
|
||||
});
|
||||
|
|
@ -26,7 +26,7 @@ function start() {
|
|||
function stop() {
|
||||
|
||||
var child = spawn('forever', ['stop', '-c', 'node', 'index.js', '-s'], {
|
||||
cwd: __dirname,
|
||||
cwd: path.normalize(__dirname),
|
||||
env: process.env,
|
||||
detached: true
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue