mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
initial
This commit is contained in:
parent
335dada2dd
commit
135c4b2182
@ -60,7 +60,7 @@ function cronize(cron_pattern) {
|
||||
|
||||
function exec(script, outFile, errFile) {
|
||||
// Change dir to fix process.cwd
|
||||
process.chdir(p.dirname(script) || process.env.PWD);
|
||||
process.chdir(process.env.PWD || p.dirname(script));
|
||||
|
||||
var stderr, stdout;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user