32 lines
640 B
JavaScript
32 lines
640 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: "llm-proxy-api",
|
|
script: "npm",
|
|
args: "run start:pm2",
|
|
cwd: __dirname,
|
|
env_file: ".env",
|
|
watch: ["src", "scripts", "package.json", "next.config.ts", ".env"],
|
|
watch_delay: 1000,
|
|
watch_options: {
|
|
followSymlinks: false,
|
|
usePolling: true,
|
|
interval: 1000,
|
|
},
|
|
ignore_watch: [
|
|
"node_modules",
|
|
".next",
|
|
".git",
|
|
"logs",
|
|
"dist",
|
|
"build",
|
|
"coverage",
|
|
"public",
|
|
],
|
|
max_memory_restart: "1G",
|
|
instances: 1,
|
|
exec_mode: "fork",
|
|
},
|
|
],
|
|
};
|