Unitech / Unitech/pm2

Cannot set custom dump.pm2 path

Open
#4,788 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.