mirror of https://github.com/buster-so/buster.git
22 lines
595 B
Makefile
22 lines
595 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 libs/database/seed.sql && \
|
|
export RUST_LOG=debug
|
|
export CARGO_INCREMENTAL=1
|
|
nice cargo watch -C server -x run
|
|
|
|
stop:
|
|
docker compose down && \
|
|
supabase stop && \
|
|
pkill ollama
|
|
|
|
fast:
|
|
export RUST_LOG=debug
|
|
export CARGO_INCREMENTAL=1
|
|
nice cargo watch -C server -x run
|