Skip to content

Commit

Permalink
Merge pull request #3771 from chinesedfan/patch-2
Browse files Browse the repository at this point in the history
fix: option -w doesn't work
  • Loading branch information
wallet77 committed Jul 6, 2018
2 parents 429e455 + 165a05c commit 8de987a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ class API {
/**
* If -w option, write configuration to configuration.json file
*/
if (appConf.write) {
if (app_conf.write) {
var dst_path = path.join(process.env.PWD || process.cwd(), app_conf.name + '-pm2.json');
Common.printOut(conf.PREFIX_MSG + 'Writing configuration to', chalk.blue(dst_path));
// pretty JSON
Expand Down

0 comments on commit 8de987a

Please sign in to comment.