Can't start app when using autostart = false
Open
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 can't start any apps when using the 'autostart' parameter
How could we reproduce this issue?
ecosystem.config.js
module.exports = [{
name: 'testapp',
script: `test.js`,
autostart: false
}];
test.js
console.log('Hello World!');
Supporting information
# Run the following commands
$ pm2 start ecosystem.config.js
$ pm2 start testapp
$ pm2 logs testapp
# Logs are empty
I made a PR to fix this in the forked repo but it didn't get merged: https://github.com/ultimate-tester/pm2/pull/1
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
Reproduce the issue with ecosystem.config.js and test.js by running pm2 start ecosystem.config.js, pm2 start testapp, and pm2 logs testapp. Done means an app configured with autostart: false can be started explicitly and its Hello World! output appears in the logs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100