Skip to content

Commit

Permalink
fix: option -w doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
chinesedfan committed Jul 6, 2018
1 parent 429e455 commit 165a05c
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 165a05c

Please sign in to comment.