feat: 添加PM2部署配置,固定生产环境端口13007
- 修改start:prod脚本直接指定端口13007 - 添加deploy脚本使用PM2启动应用 - 简化部署流程,避免Next.js环境变量配置问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
		| @@ -5,8 +5,9 @@ | ||||
|   "scripts": { | ||||
|     "dev": "next dev --turbopack", | ||||
|     "build": "next build --turbopack",  | ||||
|     "start": "next start -p ${PORT:-3000}", | ||||
|     "start:prod": "next start -p ${PORT:-3000}" | ||||
|     "start": "next start", | ||||
|     "start:prod": "next start -p 13007", | ||||
|     "deploy": "pm2 start npm --name accounts-manager-web -- run start:prod" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@radix-ui/react-checkbox": "^1.3.3", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user