A
A
Alexander Koshelev2018-10-14 18:50:00
Node.js
Alexander Koshelev, 2018-10-14 18:50:00

How to change working directory in pm2?

Good afternoon guys, I ran into a nuance (not an error), I have pm2 looking for files from / home / user, in principle it’s a problem, since you can rewrite the paths to the files in the files, but what if there are a lot of them? the site (node.js web application) is located at /var/www/proekt, how can I change the settings or configs of pm2 so that it reads from here and not from /home/user?
Here is the error itself when entering the site
In the internet, I searched and searched for a feeling that pm2 does not have a config chtol? Is it possible to change the path?

Error: Failed to lookup view "index" in views directory "/home/user/views"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2018-10-14
@RidgeA

this is how to look for something that would not be found on the official website?
https://pm2.io/doc/en/runtime/reference/ecosystem-file/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question