When I run through DEBUG = myapp: * npm start - everything works. Pm2 works with only one page and does not see the require modules in the script.
//пробовал и так pm2 start /var/www/html/myapp //и так pm2 start /var/www/html/myapp/app.js //и так pm2 start /var/www/html/procesess.json Nothing works.