From 4588a744a17f6ff830f5214993ff93961174ed90 Mon Sep 17 00:00:00 2001 From: "David B. Adrian" Date: Fri, 3 Jan 2025 20:07:07 +0100 Subject: [PATCH] Partial fixing of taskfile, still a total mess --- Taskfile.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 839047c8..721a0d43 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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 @@ -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: