Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3192: Reloading With --update-env Option #5881

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

mkalygin
Copy link

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #3192
License MIT
Doc PR N/A

Hi, this is my first bug fix for pm2. I've been struggling with the issue described in #3192 for a long time. Previously, I used the following hack to make it work properly:

pm2 startOrReload ecosystem.config.cjs --env production && pm2 reload app_name --update-env

After reviewing the code, I believe I have found the actual cause of this bug. The environment gets overriden due to a wrong object extension in Utility.extendExtraConfig.

I'm open to any suggestions for improvements.

@CLAassistant
Copy link

CLAassistant commented Aug 25, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants