mirror of https://github.com/buster-so/buster.git
current makefile and seed
This commit is contained in:
parent
277f0b85ad
commit
f12e524b82
File diff suppressed because one or more lines are too long
18
api/makefile
18
api/makefile
|
@ -1,8 +1,6 @@
|
|||
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 && \
|
||||
|
@ -11,6 +9,22 @@ dev:
|
|||
export CARGO_INCREMENTAL=1
|
||||
nice cargo watch -C server -x run
|
||||
|
||||
update-seed:
|
||||
PGPASSWORD=postgres pg_dump -h 127.0.0.1 -p 54322 -U postgres -d postgres \\
|
||||
--data-only --no-owner --no-privileges \\
|
||||
--exclude-table=schema_migrations \\
|
||||
--exclude-table=__diesel_schema_migrations \\
|
||||
--exclude-table=migrations \\
|
||||
--exclude-table=supabase_migrations.schema_migrations \\
|
||||
--exclude-schema=auth \\
|
||||
--exclude-schema=storage \\
|
||||
--exclude-schema=realtime \\
|
||||
--exclude-schema=pgsodium \\
|
||||
--exclude-schema=pgsodium_masks \\
|
||||
--exclude-schema='pg_*' \\
|
||||
--exclude-schema=information_schema \\
|
||||
> libs/database/seed.sql
|
||||
|
||||
stop:
|
||||
docker compose down && \
|
||||
supabase stop && \
|
||||
|
|
Loading…
Reference in New Issue