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