aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-10 14:16:09 +0900
committernsfisis <nsfisis@gmail.com>2024-08-10 21:13:37 +0900
commitec03322292d1063ee113a4ad08cfd823cce87850 (patch)
tree5429d994bb7282dec5ac14cce2f0d49c43bc1855 /Makefile
parent7ca24d875c88bf1d063e156fac8f03507fc38382 (diff)
downloadiosdc-japan-2024-albatross-ec03322292d1063ee113a4ad08cfd823cce87850.tar.gz
iosdc-japan-2024-albatross-ec03322292d1063ee113a4ad08cfd823cce87850.tar.zst
iosdc-japan-2024-albatross-ec03322292d1063ee113a4ad08cfd823cce87850.zip
chore: add `make all` and `make reset` for local dev
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bf3b34c..b9320bd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,10 @@
DOCKER_COMPOSE := docker compose -f compose.local.yaml
+all: down build reset up
+
+reset:
+ echo "UPDATE games SET state = 'waiting_entries', started_at = NULL WHERE game_id = 1;" | make psql-query
+
.PHONY: build
build:
${DOCKER_COMPOSE} build