Add shared auth, deployment config, and dev tooling

This commit is contained in:
brutsalvadi
2026-05-01 21:55:55 +02:00
parent c416dbc226
commit 2b440b02e6
7 changed files with 766 additions and 95 deletions
+15 -1
View File
@@ -4,9 +4,23 @@
set -e
cd "$(dirname "$0")/.."
# Shared DB: use SHARED_DB_PATH env var if set, else fall back to the
# standard bincio_activity dev location created by its dev_test.py --fresh.
if [[ -z "$SHARED_DB_PATH" ]]; then
SHARED_DB_PATH="/tmp/bincio_dev_test/instance.db"
if [[ ! -f "$SHARED_DB_PATH" ]]; then
echo "⚠ Shared DB not found at $SHARED_DB_PATH"
echo " Run bincio_activity's dev_test.py first:"
echo " cd ../bincio_activity && uv run python scripts/dev_test.py --fresh"
echo " Or set SHARED_DB_PATH to an existing instance.db."
exit 1
fi
fi
export SHARED_DB_PATH
# Start edit sidecar if requested
if [[ "$*" == *"--edit"* ]]; then
echo "Starting edit sidecar on :8001..."
echo "Starting edit sidecar on :8001... (DB: $SHARED_DB_PATH)"
uv sync -q
uv run uvicorn edit.server:app --reload --port 8001 &
SIDECAR_PID=$!