feat(deployment): 优化宝塔 PM2 standalone 部署流程并添加一键部署脚本
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "NEXT_DISABLE_MEM_OVERRIDE=1 NODE_OPTIONS='--max-old-space-size=3072' next dev --port 3801",
|
||||
"build": "next build",
|
||||
"build": "next build && cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && echo '✅ standalone 静态资源已复制完毕'",
|
||||
"start": "next start --port 3801",
|
||||
"lint": "eslint"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user