do not dump module with God.

This commit is contained in:
Unitech 2015-04-20 17:48:40 -04:00
parent 28734043cf
commit 7f0164a67a

View File

@ -137,7 +137,9 @@ module.exports = function(God) {
return fin(null);
delete apps[0].pm2_env.instances;
delete apps[0].pm2_env.pm_id;
process_list.push(apps[0].pm2_env);
// Do not dump modules
if (!apps[0].pm2_env.pmx_module)
process_list.push(apps[0].pm2_env);
apps.shift();
return saveProc(apps);
})(apps);