Files
gitlab-instance-0a899031_sh/d2ypp2/dev.sh
2026-05-16 19:24:30 -05:00

13 lines
346 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 开发API(热重载) + Next dev浏览器打开 http://localhost:3000
set -euo pipefail
cd "$(dirname "$0")"
export PORT="${PORT:-8001}"
if [[ -x ".venv/bin/python" ]]; then
PY=".venv/bin/python"
else
PY=python3
command -v python3 >/dev/null 2>&1 || PY=python
fi
exec "$PY" scripts/launch.py --dev --port "$PORT"