]> acesimba.cloud Git - daydayup.git/commitdiff
将前后端服务启停配置到一起
authorroot <root@localhost.localdomain>
Thu, 21 May 2026 10:26:30 +0000 (18:26 +0800)
committerroot <root@localhost.localdomain>
Thu, 21 May 2026 10:26:30 +0000 (18:26 +0800)
studybase/ecosystem.config.js [new file with mode: 0644]

diff --git a/studybase/ecosystem.config.js b/studybase/ecosystem.config.js
new file mode 100644 (file)
index 0000000..f2594cb
--- /dev/null
@@ -0,0 +1,18 @@
+module.exports = {
+    apps: [
+      {
+        name: "backend",
+        cwd: "/home/daydayup/studybase/backend",
+        script: "/usr/bin/python3",
+        args: "app.py",
+        watch: true
+      },
+      {
+        name: "frontend",
+        cwd: "/home/daydayup/studybase/frontend",
+        script: "/root/.nvm/versions/node/v22.22.2/bin/npm",
+        args: "start",
+        watch: true
+      }
+    ]
+  };
\ No newline at end of file