Skip to content

On failed pm2 install <module>, restore previous version #3314

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

Closed
Unitech opened this issue Nov 27, 2017 · 2 comments
Closed

On failed pm2 install <module>, restore previous version #3314

Unitech opened this issue Nov 27, 2017 · 2 comments

Comments

@Unitech
Copy link
Owner

Unitech commented Nov 27, 2017

No description provided.

@Unitech
Copy link
Owner Author

Unitech commented Dec 4, 2017

$ pm2 install <module> --safe [monitor_time]

Process:

  • If a module fail to be installed via NPM, restore previous working module
  • If a module has a weird behavior (lot of restart in [monitor_time] range), restore previous working module

Module organisation refactoring:
b5372aa
Now each module has his own folder (instead of storing everything in ~/.pm2/node_modules, now each modules has his own path in ~/.pm2/modules/<module_name>)

--safe option:
288f393

@Unitech
Copy link
Owner Author

Unitech commented Dec 14, 2017

Fixed.

Changelog: 2.9.0 CHANGELOG
Introduced in version: 2.9.0

Update procedure:

npm install pm2 -g
pm2 update

@Unitech Unitech closed this as completed Dec 14, 2017
inerc pushed a commit to inerc/pm2 that referenced this issue Feb 11, 2020
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

1 participant