@wilkersoh
To run strapi with pm2 in production mode, I would recommend using ecosystems file.
Create an ecosystems.config.js
file in the root folder of your project (near package.json).
module.exports = {
apps: [
{
name: 'yourapp-name',
script: 'npm',
args: 'start',
env: {
NODE_ENV: 'production',
},
exp_backoff_restart_delay: 100,
},
],
};
Now run it with following command: pm2 start ecosystems.config.js