From 94f229ac1d5b14b21e5056dcafd3a4fbf9e7b594 Mon Sep 17 00:00:00 2001 From: cloud370 Date: Tue, 23 Sep 2025 09:46:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0PM2=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=9B=BA=E5=AE=9A=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=AB=AF=E5=8F=A313007?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改start:prod脚本直接指定端口13007 - 添加deploy脚本使用PM2启动应用 - 简化部署流程,避免Next.js环境变量配置问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 97a3d90..52b05aa 100644 --- a/package.json +++ b/package.json @@ -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",