From 5d4a0dd00f5cbe22cb928e4ce597c945e9cc56a4 Mon Sep 17 00:00:00 2001 From: lkddi Date: Sat, 28 Mar 2026 21:54:24 +0800 Subject: [PATCH] =?UTF-8?q?build(deploy):=20=E4=BC=98=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E8=84=9A=E6=9C=AC=EF=BC=8C=E6=AF=8F=E6=AC=A1=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E5=85=88=E6=B8=85=E7=90=86=E7=BC=93=E5=AD=98=E5=86=8D?= =?UTF-8?q?=E9=87=8D=E5=BB=BA=E4=BC=98=E5=8C=96=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy_update.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deploy_update.sh b/deploy_update.sh index b1403d3..ca4a1a2 100644 --- a/deploy_update.sh +++ b/deploy_update.sh @@ -48,9 +48,6 @@ npm run build if [ $? -ne 0 ]; then echo -e "${RED}❌ npm run build 失败${NC}"; exit 1; fi echo -e "${GREEN}✅ 前端资源构建完成。${NC}" -# 3. 清理缓存 -echo -e "${YELLOW}[4/7] 清理缓存...${NC}" -php artisan config:clear && php artisan cache:clear && php artisan view:clear # 4. 数据库迁移 echo -e "${YELLOW}[5/7] 数据库迁移...${NC}" @@ -58,7 +55,7 @@ php artisan migrate --force # 5. 优化 echo -e "${YELLOW}[6/7] 生产环境优化...${NC}" -php artisan config:cache && php artisan route:cache && php artisan view:cache +php artisan optimize:clear && php artisan optimize && php artisan view:cache # 6. 权限 echo -e "${YELLOW}[7/7] 修复权限...${NC}"