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:
@@ -45,8 +45,8 @@ pnpm run dev
|
||||
```bash
|
||||
cd /opt/zhimingge
|
||||
cp .env.example .env.local && nano .env.local # 填写 OPENAI_API_KEY,PORT=3130
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm run build
|
||||
npm install --frozen-lockfile
|
||||
npm run build
|
||||
pm2 start ecosystem.config.cjs
|
||||
pm2 save && pm2 startup
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user