mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-28 16:45:11 +08:00
Made app.dpd save as prettified JSON
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports.loadConfig = function(basepath, fn) {
|
||||
*/
|
||||
module.exports.saveConfig = function(resources, basepath, fn) {
|
||||
var resourcesPath = path.join(basepath, '/app.dpd')
|
||||
, json = JSON.stringify(resources);
|
||||
, json = JSON.stringify(resources, null, '\t');
|
||||
|
||||
fs.writeFile(resourcesPath, json, 'utf-8', function(err) {
|
||||
if (err) return fn(err);
|
||||
|
||||
Reference in New Issue
Block a user