buster/api/makefile

22 lines
574 B
Makefile

dev:
cd .. && docker compose up -d redis && cd api && \
supabase start
ollama serve &
ollama pull mxbai-embed-large
supabase db reset
export DATABASE_URL=postgres://postgres:postgres@127.0.0.1:54322/postgres && \
diesel migration run && \
PGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -d postgres -U postgres -f src/database/seed.sql && \
export RUST_LOG=debug
export CARGO_INCREMENTAL=1
nice cargo watch -x run
stop:
docker compose down && \
supabase stop && \
pkill ollama
fast:
export RUST_LOG=debug
export CARGO_INCREMENTAL=1
nice cargo watch -x run