#!/usr/bin/env bash
set -euo pipefail
PROJECT_ROOT="$(cd "$(dirname "$0")" && pwd)"
export POLYFORM_DB="${POLYFORM_DB:-$PROJECT_ROOT/artifacts/polyform.db}"
mkdir -p "$(dirname "$POLYFORM_DB")"
exec "$PROJECT_ROOT/backend/.venv/bin/polyform-server"

