chore: 部署改为 PM2,服务监听 0.0.0.0

- 新增 ecosystem.config.js(next start -H 0.0.0.0 -p 3100)
- package.json start 脚本绑定 0.0.0.0
- DEPLOY.md 重写为 PM2 详细部署,含端口放行/防火墙/Nginx 反代/更新回滚
- .gitignore 忽略 logs/

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-08 19:43:10 +08:00
co-authored by Claude Opus 4.8
parent 9ce320ef11
commit 1e8396d0d3
4 changed files with 122 additions and 87 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev -p 3100",
"build": "next build",
"start": "next start -p 3100",
"start": "next start -H 0.0.0.0 -p 3100",
"lint": "next lint",
"prisma:pull": "prisma db pull",
"prisma:generate": "prisma generate",