Open mario-mui opened 7 years ago
We should add a option to be able to declare dependencies between app like docker-compose do.
Any update? Thanks.
This would be a really good idea as this is a common scenario in production. Any update on this?
Any update on this? I would like to use this feature too.
2022 any update?
This would be a good feature to have.
No updates? :(
This would be useful for having startup parity between k8s, docker, and others. K8s provides "init-containers", and docker compose allows you to declare depends_on
- both allow you to do things before your app runs. This includes (but is not limited to):
These tasks are required for the app to run, but are not the concern of application code. Many of these processes need to run with special admin/root privileges and should run separately (sandboxed) from the app. I know we can wrap pm2 in our own scripts to do all of this, but it would be much cleaner to make it declarative inside pm2 configs. This would allow pm2 configs to mirror k8s and docker.
Supporting information
I has json file like this:
Can pm2 start /app2/app.js after App name 'app1' status is online?