Why PM2 can not found builds file on docker container? Why PM2 can not found builds file on docker container? docker docker

Why PM2 can not found builds file on docker container?


Try to edit files:

ecosystem.json or ecosystem.yml:

args: "start -c /xxx/xxx/nuxt.config.js"

ecosystem.config.js:

args: `start -c ${process.cwd()}/nuxt.config.js`,

nuxt.config.js:

rootDir: process.cwd()buildDir: process.cwd() + '/.nuxt/'

here is the issue on github: https://github.com/nuxt/nuxt.js/issues/8704#issuecomment-876441236