serve.sh: mkdir -p data before logging (fresh-checkout fix for new nodes)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
MODELBEAST 2026-07-14 11:51:29 +10:00
parent 210d80484c
commit a4facbacd9

View File

@ -6,6 +6,7 @@
# On first run the owner account + one-time password print to data/server.log. # On first run the owner account + one-time password print to data/server.log.
set -euo pipefail set -euo pipefail
cd "$(dirname "$0")/.." cd "$(dirname "$0")/.."
mkdir -p data # gitignored — absent on a fresh checkout
lsof -ti:8777 | xargs kill 2>/dev/null || true lsof -ti:8777 | xargs kill 2>/dev/null || true
sleep 1 sleep 1
nohup /opt/homebrew/bin/uv run uvicorn server.main:app --host 0.0.0.0 --port 8777 \ nohup /opt/homebrew/bin/uv run uvicorn server.main:app --host 0.0.0.0 --port 8777 \