REM "George项目启动bat脚本"
REM "进入项目目录"
d:
cd /d %~dp0
REM "输出当前路径"
echo %CD%
REM "生效python .venv"
REM CALL .\.venv\Scripts\Activate.bat
REM "安装requirements.txt模块"
pip install -r requirements.txt
REM "在新窗口中启动各个服务"
REM "启动django"
start cmd /k "python .\manage.py runserver 0.0.0.0:8080"
REM "启动beat服务"
start cmd /k "del /a/f/q celerybeat.pid && celery -A manager beat -l info"
REM "启动worker服务"
REM windows
start cmd /k "celery -A manager worker -l info -P gevent"
REM linux
REM celery -A manager worker -l info
REM "启动vue"
start cmd /k "cd frontend && npm run watch"
REM pause