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 STRAPI_LOG_LEVEL: "info",
16 STRAPI_LOG_FORCE_COLOR: false,
17 },
18 },
19 {
20 name: "next",
21 cwd: "frontend/",
22 script: "yarn",
23 args: "start",
24 interpreter: "bash",
25 restart_delay: 10000,
26 env: {
27 PORT: 3000,
28 STRAPI_URL: `http://${HOST}`,
29 },
30 },
31 ],
32};