-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
5 lines (3 loc) · 1.3 KB
/
Copy pathecosystem.config.cjs
File metadata and controls
5 lines (3 loc) · 1.3 KB
1
2
3
4
5
const path = require("node:path"); const root = __dirname; const log = path.join(root, ".logs");
const npmApp = (name, cwd, command, env = {}) => ({ name: "trustlink-" + name, script: "cmd.exe", args: "/d /s /c \"npm.cmd run " + command + "\"", cwd: path.join(root, cwd), interpreter: "none", instances: 1, autorestart: true, watch: false, windowsHide: true, kill_timeout: 10000, out_file: path.join(log, name + "-out.log"), error_file: path.join(log, name + "-error.log"), time: true, env: { NODE_ENV: "development", ...env } });
module.exports = { apps: [npmApp("frontend", "frontend", "dev", { NODE_OPTIONS: "--max-old-space-size=2048" }), npmApp("backend", "backend", "dev"), { name: "trustlink-mempool", script: path.join(root, ".venv", "Scripts", "python.exe"), args: "-u server.py", cwd: path.join(root, "tsn-protocol", "tsn-mempool-backend"), interpreter: "none", instances: 1, autorestart: true, watch: false, windowsHide: true, kill_timeout: 10000, out_file: path.join(log, "mempool-out.log"), error_file: path.join(log, "mempool-error.log"), time: true, env: { PYTHONUNBUFFERED: "1", MEMPOOL_STORE: "file" } }, npmApp("mempool-ui", "tsn-protocol/tsn-mempool-frontend", "dev"), npmApp("rpc-gateway", "tsn-protocol/tsn-rpc-gateway", "dev"), npmApp("cranker", "tsn-protocol/tsn-cranker-op-daemon", "crank:start")] };