's'
This commit is contained in:
12
d2ypp2/dev.sh
Normal file
12
d2ypp2/dev.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user