Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question