Skip to content

Commit

Permalink
Commit ecosystem.config.js from vps
Browse files Browse the repository at this point in the history
  • Loading branch information
ducomputingsociety committed Oct 30, 2024
1 parent 18e1ca9 commit b9323b9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
const instanceName = process.env.INSTANCE_NAME;
if (!instanceName) throw new Error("INSTANCE_NAME is undefined")

module.exports = {
apps: [
{
name: "guilds-client",
script: "npm start",
name: `${instanceName}-client`,
script: "pnpm start",
cwd: "./client",
env: {
NODE_ENV: "production"
}
NODE_ENV: "production",
},
},
{
name: "guilds-api",
name: `${instanceName}-server`,
script: "./dist/main.js",
cwd: "./server",
node_args: ["--experimental-specifier-resolution=node"],
env: {
NODE_ENV: "production"
NODE_ENV: "production",
},
instances: 2
}
]
},
],
}

0 comments on commit b9323b9

Please sign in to comment.