更新.gitignore以排除部署配置文件,删除不再使用的一键部署脚本,优化小程序部署流程,增强文档说明。

This commit is contained in:
乘风
2026-01-31 17:39:21 +08:00
parent ceac5b73ff
commit 70497d3047
45 changed files with 9346 additions and 272 deletions

19
ecosystem.config.cjs Normal file
View File

@@ -0,0 +1,19 @@
/**
* PM2 配置:用于 standalone 部署的服务器
* 启动方式node server.js不要用 npm start / next startstandalone 无 next 命令)
* 使用pm2 start ecosystem.config.cjs 或 PORT=3006 pm2 start server.js --name soul
*/
module.exports = {
apps: [
{
name: 'soul',
script: 'server.js',
interpreter: 'node',
env: {
NODE_ENV: 'production',
PORT: 3006,
},
cwd: undefined, // 以当前目录为准,部署时在 /www/wwwroot/soul
},
],
};