Kaynağa Gözat

优化脚本

wui 6 ay önce
ebeveyn
işleme
777e46b5cc
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      deploy.sh

+ 2 - 2
deploy.sh

@@ -25,9 +25,9 @@ cp package.json dist/package.json
 cd dist
 
 # 检查 PM2 应用是否存在,如果不存在则创建新的
-if pm2 list | grep -q "tweb-api"; then
+if pm2 list | grep -q "tweb"; then
     echo "🔄 重启现有的 PM2 应用..."
-    pm2 restart tweb-api
+    pm2 restart tweb
 else
     echo "🚀 创建新的 PM2 应用..."
     pm2 start server.js --name tweb