Hi! Today I tried to deploy a Payload app using docker and PM2 in ubuntu 16, in a DigitalOcean VPS, but I still getting issues, in case of PM2 when I ran "yarn build" and "pm2 start dist/server.js" it returns in "payload.config.js is not found" and in case when I ran docker compose it doesn't return any issue, but when I tried to access to the website it never loads.
yeah if you can't find your Payload config, make sure you have an
variable that points directly to your production Payload config
generally our production start command includes setting the
"serve": "cross-env PAYLOAD_CONFIG_PATH=dist/payload.config.js NODE_ENV=production node dist/server.js",
do you have something like this? and if so, is your config truly located where your env is telling it to be found? in the above case, it's
I have added the URL of my app to env file and It works fine! It was the issue