@@ -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