Env setup for production and local development

This is exactly how I use it! :grinning:
… as I specified here Env setup for production and local development - #5 by SorinGFS

I configured pm2 like this:

  • created index.js file inside project root folder with this content:
const strapi = require('strapi');
strapi().start();
  • and created ecosystem.config.js for pm2 with this content:
module.exports = {
  apps: [
    {
      name: 'index',
      script: 'npm',
      args: 'start',
    },
  ],
};