Skip to content

Commit

Permalink
Fix Windows issue
Browse files Browse the repository at this point in the history
Added HOMEDRIVE environment variable to PM2_ROOT_PATH when on Windows. Fixes Unitech#1251.
  • Loading branch information
Mark Lagendijk committed Jul 14, 2015
1 parent f79f039 commit 28af13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var PM2_ROOT_PATH = '';
if (process.env.PM2_HOME)
PM2_ROOT_PATH = process.env.PM2_HOME;
else if (process.env.HOME || process.env.HOMEPATH)
PM2_ROOT_PATH = p.resolve(process.env.HOME || process.env.HOMEDRIVE, process.env.HOMEPATH, '.pm2');
PM2_ROOT_PATH = p.resolve(process.env.HOME || (process.env.HOMEDRIVE + process.env.HOMEPATH), '.pm2');
else
PM2_ROOT_PATH = p.resolve('/etc', '.pm2');

Expand Down

0 comments on commit 28af13b

Please sign in to comment.