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