ecosystem.config.js (view raw)
1const { HOST = "localhost" } = process.env;
2
3module.exports = {
4 apps: [
5 {
6 name: "strapi",
7 cwd: "backend/",
8 script: "yarn",
9 args: "start",
10 interpreter: "bash",
11 restart_delay: 10000,
12 max_restarts: 10,
13 env: {
14 PORT: 80,
15 },
16 },
17 {
18 name: "next",
19 cwd: "frontend/",
20 script: "yarn",
21 args: "start",
22 interpreter: "bash",
23 restart_delay: 10000,
24 env: {
25 PORT: 3000,
26 STRAPI_URL: `http://${HOST}`,
27 },
28 },
29 ],
30};