Skip to content

yarn v3 zero-install with pm2 cluster modeΒ #5199

@geauser

Description

@geauser

Hi, I'm using yarn 3.3.1 with zero-installs enabled and I just figured we can't use yarn with pm2 when in cluster mode, as it only works with JS files.

Is there anything I can do about it?

Here is what my pm2 ecosystem.config.js looks like:

module.exports = {
  apps : [
    {
      name: "api",
      script: "yarn",
      args: ['start'],
      cwd: './modules/api',
      interpreter: "/bin/bash",

      // It works if removes these 2 lines 
      instances: 2,
      exec_mode: 'cluster',
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions