mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
ignore more internal variables
This commit is contained in:
parent
d5e731e332
commit
3adffde39e
@ -270,7 +270,7 @@ Common.extend = function(origin, add){
|
||||
if (!add || typeof add != 'object') return origin;
|
||||
|
||||
//Ignore PM2's set environment variables from the nested env
|
||||
var keysToIgnore = ['name', 'exec_mode', 'env', 'pm_cwd', 'exec_interpreter', 'pm_exec_path', 'node_args', 'pm_out_log_path', 'pm_err_log_path', 'pm_pid_path', 'pm_id', 'status', 'pm_uptime', 'created_at', 'started_inside', 'unstable_restarts', 'restart_time', 'pm_id', 'axm_actions', 'pmx_module', 'command', 'watch'];
|
||||
var keysToIgnore = ['name', 'exec_mode', 'env', 'pm_cwd', 'exec_interpreter', 'pm_exec_path', 'node_args', 'pm_out_log_path', 'pm_err_log_path', 'pm_pid_path', 'pm_id', 'status', 'pm_uptime', 'created_at', 'started_inside', 'unstable_restarts', 'restart_time', 'pm_id', 'axm_actions', 'pmx_module', 'command', 'watch', 'versioning', 'vizion_runing', 'MODULE_DEBUG'];
|
||||
|
||||
var keys = Object.keys(add);
|
||||
var i = keys.length;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user