From 294aa37b24d04291e463e219c39725093868cc10 Mon Sep 17 00:00:00 2001 From: Christopher Small Date: Fri, 17 Feb 2023 14:27:58 -0800 Subject: [PATCH] Add psql-shell task to makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 569cc637c..c3d72fc87 100644 --- a/Makefile +++ b/Makefile @@ -86,6 +86,10 @@ e2e-run-all: ## Run E2E tests: all $(E2E_RUN) npm run e2e:all +psql-shell: ## Assuming a system is already running with `make start`, start up an interactive psql shell + docker-compose exec postgres psql --username postgres --dbname polis-dev + + # Helpful CLI shortcuts rbs: start-rebuild @@ -93,7 +97,7 @@ rbs: start-rebuild @true .PHONY: help pull start stop rm-containers rm-volumes rm-images rm-ALL hash start-rebuild restart-FULL-REBUILD \ - rm-ALL-ALL-TAGS e2e-install e2e-prepare e2e-run-minimal e2e-run-standalone e2e-run-secret e2e-run-subset e2e-run-all + rm-ALL-ALL-TAGS e2e-install e2e-prepare e2e-run-minimal e2e-run-standalone e2e-run-secret e2e-run-subset e2e-run-all psql-shell help: @echo 'Usage: make '