-
Notifications
You must be signed in to change notification settings - Fork 945
Closed
Labels
Description
First off, with relative paths, everything is fine and dandy:
moon@clymene:/atlas/www/node-bitcoin-p2p$ forever start daemon/start.js
info: Running action: start
info: Forever processing file: daemon/start.js
moon@clymene:/atlas/www/node-bitcoin-p2p$ forever restart daemon/start.js
info: Running action: restart
info: Forever processing file: daemon/start.js
info: Forever restarted processes:
[0] node daemon/start.js [2652, 2650] /home/moon/.forever/VhGx.log 0:0:0:5.471
moon@clymene:/atlas/www/node-bitcoin-p2p$ forever stop daemon/start.js
info: Running action: stop
info: Forever processing file: daemon/start.js
info: Forever stopped process:
[0] node daemon/start.js [2679, 2678] /home/moon/.forever/VhGx.log 0:0:0:4.325But if we use an absolute path, no such luck:
moon@clymene:/atlas/www/node-bitcoin-p2p$ forever start /atlas/www/node-bitcoin-p2p/daemon/start.js
info: Running action: start
info: Forever processing file: /atlas/www/node-bitcoin-p2p/daemon/start.js
moon@clymene:/atlas/www/node-bitcoin-p2p$ forever restart /atlas/www/node-bitcoin-p2p/daemon/start.js
info: Running action: restart
info: Forever processing file: /atlas/www/node-bitcoin-p2p/daemon/start.js
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'sourceDir' of undefined
at /usr/local/lib/node_modules/forever/lib/forever.js:235:21
at /usr/local/lib/node_modules/forever/node_modules/async/lib/async.js:97:13
at Array.forEach (native)
at /usr/local/lib/node_modules/forever/node_modules/async/lib/async.js:26:24
at Object.forEach (/usr/local/lib/node_modules/forever/node_modules/async/lib/async.js:96:9)
at EventEmitter.<anonymous> (/usr/local/lib/node_modules/forever/lib/forever.js:225:13)
at EventEmitter.emit (events.js:64:17)
at Array.<anonymous> (/usr/local/lib/node_modules/forever/lib/forever.js:200:15)
at EventEmitter._tickCallback (node.js:126:26)
moon@clymene:/atlas/www/node-bitcoin-p2p$ forever stop /atlas/www/node-bitcoin-p2p/daemon/start.js
info: Running action: stop
info: Forever processing file: /atlas/www/node-bitcoin-p2p/daemon/start.js
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'command' of undefined
at /usr/local/lib/node_modules/forever/lib/forever.js:345:26
at Array.forEach (native)
at Object.list (/usr/local/lib/node_modules/forever/lib/forever.js:344:11)
at Array.<anonymous> (/usr/local/lib/node_modules/forever/lib/forever.js:200:45)
at EventEmitter._tickCallback (node.js:126:26)