From e9e65f2e86ba21eac48ca5710b1e2ba9fc552bb6 Mon Sep 17 00:00:00 2001 From: flying-hero <462087392@qq.com> Date: Sun, 5 Apr 2026 07:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20=E6=B7=BB=E5=8A=A0=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83=E5=BF=AB=E9=80=9F=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start-dev.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 start-dev.sh diff --git a/start-dev.sh b/start-dev.sh new file mode 100755 index 00000000..f933ecc3 --- /dev/null +++ b/start-dev.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# 龙虾议事厅 - 开发环境快速启动脚本 + +echo "🏛️ 启动龙虾议事厅开发环境..." + +# 启动后端 +echo "📦 启动后端..." +cd backend +nohup python3 manage.py runserver 0.0.0.0:8000 > /tmp/meeting-backend.log 2>&1 & +BACKEND_PID=$! +echo "✅ 后端已启动 (PID: $BACKEND_PID)" + +# 等待后端启动 +sleep 3 + +# 启动前端 +echo "📦 启动前端..." +cd ../frontend +nohup npm start > /tmp/meeting-frontend.log 2>&1 & +FRONTEND_PID=$! +echo "✅ 前端已启动 (PID: $FRONTEND_PID)" + +echo "" +echo "==========================================" +echo "✅ 开发环境启动完成!" +echo "==========================================" +echo "" +echo "📌 访问地址:" +echo " 前端:http://localhost:3000/" +echo " 后端 API: http://localhost:8000/api/v1/" +echo "" +echo "📌 日志文件:" +echo " 后端:/tmp/meeting-backend.log" +echo " 前端:/tmp/meeting-frontend.log" +echo "" +echo "📌 停止服务:" +echo " kill $BACKEND_PID $FRONTEND_PID" +echo ""