From 626fe648708d86a75ed4842e8adb12e0c21b20aa Mon Sep 17 00:00:00 2001 From: kakiba <97882386+kotto5@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:19:10 +0900 Subject: [PATCH] =?UTF-8?q?[makefile]=20Makefile=20=E3=81=AE=20db=20?= =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89=E3=81=8B=E3=82=89=20db=20?= =?UTF-8?q?=E3=81=AB=E3=82=A2=E3=82=AF=E3=82=BB=E3=82=B9=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=82=8B=20(#287)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 2f2e9ed2..2a33eca3 100644 --- a/Makefile +++ b/Makefile @@ -66,3 +66,9 @@ check: fmt lint update: docker compose -f compose.yml -f compose.dev.yml run frontend npx npm-check-updates -i docker compose -f compose.yml -f compose.dev.yml run backend yarn upgrade-interactive + +POSTGRES_USER = postgres +POSTGRES_DB = postgres + +db: + docker compose exec db psql -U $(POSTGRES_USER) $(POSTGRES_DB) \ No newline at end of file