Switch deployment to npm and sync pnpm-lock.yaml with lunar-javascript.
Use npm ci/install in deploy script and docs to avoid frozen pnpm lockfile failures on the server. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -14,10 +14,10 @@ echo "==> 拉取最新代码..."
|
||||
git pull origin main
|
||||
|
||||
echo "==> 安装依赖..."
|
||||
pnpm install --frozen-lockfile
|
||||
npm ci || npm install
|
||||
|
||||
echo "==> 生产构建..."
|
||||
pnpm run build
|
||||
npm run build
|
||||
|
||||
echo "==> 确保日志目录存在..."
|
||||
mkdir -p logs
|
||||
|
||||
Reference in New Issue
Block a user