-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't start app when using autostart = false #5831
Comments
I can reproduce the issue. Why don't you make a PR to pm2 directly? |
From what I understand, autostart: false is for adding the app to the pm2 list as "stopped" so it makes sense it does not run. On the other hand, I thought it was useful to get a cron task running without the initial run off-schedule, but the app does not run at all when using cron_restart: "* * * * *" and autostart: false |
The issue is that, if pm2 is started with autostart false, the app won't start after even with For example, running the following pm2 start --no-autostart app.js
pm2 start app
pm2 ls gives
The same happens if |
I thought this was expected behaviour, and that the point of it was that only cron_restart could start the app. The lack of documentation makes it difficult to talk about this, the expected behaviour is unclear to me. |
Related issue about --cron-restart #5807 |
What's going wrong?
I can't start any apps when using the 'autostart' parameter
How could we reproduce this issue?
ecosystem.config.js
test.js
Supporting information
I made a PR to fix this in the forked repo but it didn't get merged: ultimate-tester#1
The text was updated successfully, but these errors were encountered: