创赢未来评分系统 - 初始化提交(移除大文件)
All checks were successful
Deploy to Server / deploy (push) Successful in 18s
All checks were successful
Deploy to Server / deploy (push) Successful in 18s
This commit is contained in:
18
backend/start_judge_system.sh
Executable file
18
backend/start_judge_system.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
echo "Starting Judge System..."
|
||||
|
||||
# 激活虚拟环境 (如果有)
|
||||
if [ -d "venv" ]; then
|
||||
source venv/bin/activate
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
pip install -r requirements.txt
|
||||
|
||||
# 迁移数据库
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
|
||||
# 启动 Django 开发服务器
|
||||
echo "Server running at http://127.0.0.1:8000/competition/admin/"
|
||||
python manage.py runserver 0.0.0.0:8000
|
||||
Reference in New Issue
Block a user