buster/api/makefile

22 lines
578 B
Makefile
Raw Normal View History

2025-01-04 05:32:54 +08:00
dev:
cd .. && docker compose up -d redis && cd api && \
2025-01-04 05:32:54 +08:00
supabase start
ollama serve &
ollama pull mxbai-embed-large
supabase db reset
2025-01-09 12:18:08 +08:00
export DATABASE_URL=postgres://postgres:postgres@127.0.0.1:54322/postgres && \
2025-01-04 05:32:54 +08:00
diesel migration run && \
2025-02-19 02:12:29 +08:00
PGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -d postgres -U postgres -f src/database_dep/seed.sql && \
2025-01-04 05:32:54 +08:00
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