From 62a6a86c558f644ef57f7159ec6150529b07b49c Mon Sep 17 00:00:00 2001 From: donghym Date: Sun, 31 May 2026 19:22:47 +0800 Subject: [PATCH] pm2 config --- .umirc.ts | 5 +++++ ecosystem.config.js | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .umirc.ts create mode 100644 ecosystem.config.js diff --git a/.umirc.ts b/.umirc.ts new file mode 100644 index 0000000..ce38506 --- /dev/null +++ b/.umirc.ts @@ -0,0 +1,5 @@ +export default { + // ...其他配置 +// host: '0.0.0.0', // Umi 4 不支持 +// port: 8000, // Umi 4 不支持 +} \ No newline at end of file diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..6717b6f --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,13 @@ +module.exports = { + apps: [ + { + name: 'rustui', + script: 'pnpm', + args: 'run start', // 确保你的 package.json 里有 "start": "umi dev" + env: { + PORT: 8000, // 👈 这里指定端口 + HOST: '0.0.0.0' // 👈 这里指定主机 + } + } + ] +}; \ No newline at end of file