Running Node.js/Swagger application with pm2 in docker: Error opening Api.yaml
Problem is solved. I just needed to add the current working directory with cwd
to the configuration file for pm2:
{ "name": "server", "script": "build/main.js", "cwd": "build/", "env": { "APP_ID": "server", "PORT": "3000", "LOG_LEVEL": "debug", "REQUEST_LIMIT": "100kb", "SESSION_SECRET": "mySecret" }}