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

How to update config without doing pm2 kill #2576

Closed
dytsai opened this issue Dec 15, 2016 · 6 comments
Closed

How to update config without doing pm2 kill #2576

dytsai opened this issue Dec 15, 2016 · 6 comments

Comments

@dytsai
Copy link

dytsai commented Dec 15, 2016

After changing my config file and running

pm2 reload process.json --only myProject

I expect env will be changed but not.

The only way to update my env config is to do pm2 kill and pm2 start again and then do pm2 save so config will be reloaded when rebooting machine. Is there a better way to update my config?

@Unitech
Copy link
Owner

Unitech commented Dec 15, 2016

Do you change the "env" field and these values does not get updated?

@dytsai
Copy link
Author

dytsai commented Dec 15, 2016

No, and after running pm2 save, the old value is saved to .pm2/dump.pm2. I'm using pm2 version 2.2.1

@Unitech
Copy link
Owner

Unitech commented Dec 15, 2016

Could you please give me a way to reproduce this issue

@dytsai
Copy link
Author

dytsai commented Dec 15, 2016

Oops, I just found something. If value is updated, it will be saved to dump.pm2. If the field is completed omitted, it will still be saved to dump.pm2.

@Unitech
Copy link
Owner

Unitech commented Dec 15, 2016

I see, this is an edge case. We may support this feature in the following month

@vmarchaud
Copy link
Contributor

This has been fixed with pm2 2.4 published last week :)

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

No branches or pull requests

3 participants