baseline: 批次A-D 成果 + membership 半成品(测试红)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# 开发环境启动脚本:SQLite + Granian + 自动重载
|
||||
set -euo pipefail
|
||||
|
||||
# This script lives in backend/infra/scripts; manage.py lives in backend/.
|
||||
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
||||
cd "$SCRIPT_DIR/../.."
|
||||
|
||||
export DJANGO_SETTINGS_MODULE=config.settings.dev
|
||||
|
||||
echo "[dealerhub-dev] Running migrations..."
|
||||
python manage.py migrate --noinput
|
||||
|
||||
echo "[dealerhub-dev] Starting Granian ASGI on 0.0.0.0:8000..."
|
||||
exec granian config.asgi:application \
|
||||
--interface asgi \
|
||||
--host 0.0.0.0 \
|
||||
--port 8000 \
|
||||
--reload \
|
||||
--log-level info
|
||||
Reference in New Issue
Block a user