Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,20 @@ class API {
// When we are processing JSON, allow to keep the new env by default
env.updateEnv = true;

// Pass the complete app configuration for ecosystem file updates
// This allows updating non-environment attributes like script, cwd, interpreter, etc.
if (apps.length > 0) {
// Get the first matching app configuration
var appConfig = apps[0];

// Create a copy without the env property to avoid duplication
var configToPass = Object.assign({}, appConfig);
delete configToPass.env;

// Pass the complete config as current_conf for extendExtraConfig processing
env.current_conf = configToPass;
}

// Pass `env` option
that._operate(action, proc_name, env, function(err, ret) {
if (err) Common.printError(err);
Expand Down