Unitech / Unitech/pm2

Question: How to launch a cached njs package

Open
#4,959 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

Hi, I have a quick question for the esteemed panel
I have a set of nodejs packages which I would like to ensure are launched cached via a json ecosystem file, like one can launch from the commandline with 'npm run start:cached' - I am not sure if this is already happening or if other parameters needs to be set in the file. My apps entries currently look like this:

            {
                    "name": "PackageName",
                    "script": "./dist/app.js",
                    "instances": 1,
                    "cwd": "/home/pi/appfolder"
            },

Would be stellar if you can offer any guidance

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

The issue mentions an ecosystem JSON file and the npm run start:cached command, but names no repository file, test, or concrete change. First clarify whether the desired outcome is documentation or a configuration behavior, then define how a successful cached launch should be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs
Domain
cli, devops
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.