Skip to content

using PM2 in projets, name of app not good #1938 #6006

@Paul75

Description

@Paul75

Describe the bug

I am using devenv.sh to install environment.
When config to use PM2 in aplication and start application, the name given in config not chnage, always name is devenv-shell-env

To reproduce

Make configuration like :

in ecosystem.config.js :

{
    name: "entretiens-dev",
    script: "./build/index.js",
    out_file: "./logs/out.log",
    error_file: "./logs/error.log",
    log_date_format: "YYYY-MM-DD HH:mm:ss",
    merge_logs: true, // fusionne les logs des instances cluster
    watch: ["build", "config"],
    watch_delay: 2000, // délai de 2 secondes avant redémarrage
    ignore_watch: ["node_modules", "*.log"],
    env: {
      NODE_ENV: "development"
    }
  }

And after i launch it :

pm2 start ./ecosystem.config.js --only entretiens-dev --no-daemon

It start but with name : devenv-shell-env and not entretiens-dev

Version
devenv 1.6.1 (x86_64-linux)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions