Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need documentation on how to convert an "ecosystem.config.js" file to JSON for this system #68

Open
TomMiller-mas opened this issue Jun 16, 2022 · 1 comment

Comments

@TomMiller-mas
Copy link

Is your feature request related to a problem? Please describe.
Yes. I have no idea and can't find instructions on how to either register or convert my ecosystem.config.js file

Describe the solution you'd like
I have an ecosystem.config.js file that works in development and Linux but have no idea where to put it and register it for pm2 service to use it.

Additional context
I have a working ecosystem.config.js file and don't know how to get it to work with the pm2 service.
https://pm2.keymetrics.io/docs/usage/application-declaration/

Here is what I have in my file:

module.exports = {
apps: [
{
name: "em-srv",
script: "/AppServer/mas-em-srv/server.js",
instances: "1",
exec_mode: "cluster",
instance_var: "INSTANCE_ID",
watch: false,
max_memory_restart: "2G",
autorestart: true,
wait_ready: true,
listen_timeout: 10000,
kill_timeout: 5000,
NODE_ENV: "development",
},
],
};

@SammyGutierrez335
Copy link

From my understanding you just call pm2 start ./path/to/ecoFile. I am able to register my file but only if I don't specify a log/error path in my config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants