mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-20 12:03:30 +00:00
26 lines
851 B
Bash
Executable file
26 lines
851 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
export DATABASE_URL="postgresql+asyncpg://firebreak:firebreak@localhost:5432/firebreak_db"
|
|
export FIREBREAK_PUBLIC_BASE_URL="http://localhost:8000"
|
|
|
|
echo "Starting local Postgres and Adminer..."
|
|
docker compose -f ../docker-compose.yml up -d db adminer
|
|
|
|
echo "Building Tailwind CSS..."
|
|
./tailwindcss -i ./app/static/css/input.css -o ./app/static/css/output.css
|
|
|
|
echo "Starting Firebreak dev server..."
|
|
echo " FastAPI: http://localhost:8000"
|
|
echo " Adminer: http://localhost:8080"
|
|
echo " PostgreSQL / db / firebreak / firebreak / firebreak_db"
|
|
echo " CSS: watching app/static/css/input.css"
|
|
|
|
./tailwindcss -i ./app/static/css/input.css -o ./app/static/css/output.css --watch &
|
|
TW_PID=$!
|
|
|
|
trap "kill $TW_PID 2>/dev/null" EXIT
|
|
|
|
uv run uvicorn app.main:app --reload --port 8000
|