This is exactly how I use it! ![]()
⦠as I specified here Env setup for production and local development - #5 by SorinGFS
I configured pm2 like this:
- created
index.jsfile inside project root folder with this content:
const strapi = require('strapi');
strapi().start();
- and created
ecosystem.config.jsfor pm2 with this content:
module.exports = {
apps: [
{
name: 'index',
script: 'npm',
args: 'start',
},
],
};