chore: 优化 Docker 配置,添加生产环境部署脚本和文档
All checks were successful
Deploy to Server / deploy (push) Successful in 19s

This commit is contained in:
爽哒哒
2026-03-18 22:48:36 +08:00
parent f655aa0ede
commit e3a620b395
8 changed files with 610 additions and 43 deletions

View File

@@ -2,11 +2,21 @@ from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.http import JsonResponse
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView, SpectacularRedocView
from competition import judge_views
# 健康检查视图
def health_check(request):
return JsonResponse({
'status': 'healthy',
'service': '创赢未来报名评分系统',
'version': '1.0.0'
})
urlpatterns = [
path('admin/', admin.site.urls),
path('api/health/', health_check, name='health_check'),
# Judge System Routes
path('judge/', include('competition.judge_urls')),