Skip to content

Commit

Permalink
Partial fixing of taskfile, still a total mess
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadrian committed Jan 3, 2025
1 parent 51eaf4c commit 4588a74
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ tasks:
# django/backend related
backend-init:
cmds:
- task: docker-build
- docker compose start db
- docker compose exec db psql -h db -U zest -d zest -c 'CREATE EXTENSION IF NOT EXISTS pg_trgm'
- docker compose exec db psql -h db -U zest -d zest -c 'CREATE EXTENSION IF NOT EXISTS btree_gin'
- docker compose stop db
- docker compose exec backend psql -h localhost -U zest -d zest -c 'CREATE EXTENSION IF NOT EXISTS pg_trgm'
- docker compose exec backend psql -h localhost -U zest -d zest -c 'CREATE EXTENSION IF NOT EXISTS btree_gin'
- task: backend-django-migrate
- task: backend-install-fixtures
- task: backend-django-collect-static
Expand Down Expand Up @@ -90,7 +87,7 @@ tasks:
backend-django-clean:
cmds:
- docker compose start db
- docker compose exec db psql -h db -U postgres -c 'DROP SCHEMA public CASCADE; CREATE SCHEMA public;'
- ddocker compose exec backend psql -h localhost -U zest -d zest -c 'DROP SCHEMA public CASCADE; CREATE SCHEMA public;'
- docker compose stop

backend-cli:
Expand Down

0 comments on commit 4588a74

Please sign in to comment.