Cannot set custom dump.pm2 path
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
I need to be able to set a custom dump.pm2 path for use with pm2 save, while keeping my overall PM2_HOME directory intact.
I have tried setting the DUMP_FILE_PATH environment variable as the documents seem to suggest, but no matter what I do, called to pm2 save always point to PM2_HOME/.pm2/dump.pm2
Is it possible for me to manually change the path so that the dump file is stored outside of the PM2_HOME directory?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior with pm2 save, while varying DUMP_FILE_PATH and keeping PM2_HOME unchanged. Trace how the pm2 save command resolves the dump location; done means the dump is written to the requested path outside PM2_HOME.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100