Pm2: declare app dependencies inside ecosystem

Created on 12 Apr 2017  路  3Comments  路  Source: Unitech/pm2

Supporting information

I has json file like this:

"apps": [

  {
       "name": "app1"
       "scripe" : "app.js"
       "cwd": "/app1/"
       "wait_ready": true
  },

 {
       "name": "app2"
       "scripe" : "app.js"
       "cwd": "/app2/"
        "wait_ready": true
  }

]

Can pm2 start /app2/app.js after App name 'app1' status is online?

PM2 version: 2.4.4
Node version: 6.9.4
Linux
Low Open for PR API Feature

Most helpful comment

We should add a option to be able to declare dependencies between app like docker-compose do.

All 3 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

morfies picture morfies  路  3Comments

rajendar38 picture rajendar38  路  3Comments

alexpts picture alexpts  路  3Comments

ghost picture ghost  路  3Comments

xzycn picture xzycn  路  3Comments