Skip to content

Commit

Permalink
Merge pull request Unitech#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 authored Jul 6, 2018
2 parents 7981fc2 + 684f32a commit bfa6ec8
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 bfa6ec8

Please sign in to comment.