Unitech / Unitech/pm2

pm2-runtime doesnt run the daemon

Open
#4,900 1 comment 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

What's going wrong?

I wanted to use pm2 in docker for nuxt js project and I had problem when I used the pm2-runtime command it produces errors after a lot of testing I found that pm2-runtime doesn't run pm2 daemon and it fails. so I changed CMD of Dockerfile to pm2 ls && pm2-runtime process.yml and it works and thats becuase pm2 ls runs the daemon . i jsut want to ask why pm2-runtime cant run the daemon?

How could we reproduce this issue?

just test a nuxt project with this CMD pm2-runtime process.yml .

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 Nuxt project in Docker with CMD pm2-runtime process.yml, then compare its behavior with pm2 ls && pm2-runtime process.yml. Trace the pm2-runtime entry point and daemon startup path; done means the original command starts the daemon and runs process.yml without requiring pm2 ls first.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, nodejs, nuxtjs
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.