Unitech / Unitech/pm2

Suggestion: `pm2 ecosystem` should not overwrite existing ecosystem.config.js

Open
#5,014 1 comment 2 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

What's going wrong?

Accidentally ran pm2 ecosystem.

How could we reproduce this issue?

  1. Run pm2 ecosystem
  2. Edit the file.
  3. Run pm2 ecosystem
  4. Thank god you had a backup?

Related: #4094

Code in question is here: https://github.com/Unitech/pm2/blob/a6a52dca0a51aef8332a7bdee444ceeea06a4f0c/lib/API/Extra.js#L642

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 reading lib/API/Extra.js around line 642 and reproduce the behavior with pm2 ecosystem, editing ecosystem.config.js between runs. Compare the behavior with related issue #4094; done means rerunning the command no longer overwrites an existing ecosystem.config.js.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.