Pm2: with only one app you get "[PM2][ERROR] No script path - aborting"

Created on 27 Feb 2016  路  2Comments  路  Source: Unitech/pm2

It seems like this should be a valid json config,

{
  "apps:" : [
    {
      "name" : "dropbox",
      "script" : "server.js",
    }
  ]
}

But it will throw [PM2][ERROR] No script path - aborting. Instead you need to get rid of the "apps" key. This works.

{
   "name" : "dropbox",
   "script" : "server.js",
 }

I did not see this anywhere in the docs so I thought I'd post it. I'd be happy to work on a PR if somebody can point me to the file.

Todd

Most helpful comment

uggghhhhh can't believe I fell for that :-(

All 2 comments

It's apps not apps:

apps:

uggghhhhh can't believe I fell for that :-(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cchan picture cchan  路  3Comments

ghost picture ghost  路  3Comments

shaunwarman picture shaunwarman  路  3Comments

alexpts picture alexpts  路  3Comments

ldarren picture ldarren  路  3Comments