I have an ecosystem.config.js file that is:
module.exports = {
apps : [
{
name : "peble api",
script : "server.js",
instances : "1",
exec_mode : "fork",
env: {
NODE_ENV: "production",
PORT: 1337
}
}
]}
And the server.js file:
// path: `./server.js`
const strapi = require('@strapi/strapi');
strapi().start();
This is throwing a bad gateway error - however when I simply run npm run strapi start or npm run strapi develop, things run perfectly.
ANy guidance would be great.
This topic has been created from a Discord post (1287458230301102151) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord