mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
beautify module configuration file
This commit is contained in:
parent
1e070216fd
commit
278579ff6f
@ -18,7 +18,7 @@ Configuration.set = function(key, value, cb) {
|
||||
|
||||
json_conf[key] = value;
|
||||
|
||||
fs.writeFile(cst.PM2_MODULE_CONF_FILE, json5.stringify(json_conf), function(err, data) {
|
||||
fs.writeFile(cst.PM2_MODULE_CONF_FILE, json5.stringify(json_conf, null, 4), function(err, data) {
|
||||
if (err) return cb(err);
|
||||
|
||||
return cb(null, json_conf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user