后端版本服务器部署成功

This commit is contained in:
2025-09-11 15:05:23 +08:00
parent 9b7a0482e1
commit 068b7887a9
15 changed files with 575 additions and 410 deletions

20
backend/start-without-db.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# 无数据库模式启动脚本
# 确保脚本可执行
echo "🔧 正在准备无数据库模式启动..."
# 设置NODE_ENV为development
export NODE_ENV=development
# 设置NO_DB_MODE为true
export NO_DB_MODE=true
# 启动服务器
echo "🚀 以无数据库模式启动服务器..."
echo "⚠️ 注意:在无数据库模式下,许多功能将不可用"
echo "📝 查看 /health 和 /system-stats 端点获取服务器状态"
echo "📚 Swagger文档可在 /api-docs 访问"
npm run dev