aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-08 10:51:41 +0900
committernsfisis <nsfisis@gmail.com>2025-03-08 10:51:41 +0900
commita7ce31249948e4f0c1950de93f3c4f7cdda51cf4 (patch)
treec4c740f0cccd15f825596f7a115f3b8f8eb8ffa7 /Makefile
parent7f4d16dca85263dcbc7b3bb29f5fc50f4371739d (diff)
parentc06d46eae30c9468535fb6af5e9b822acadbbdb6 (diff)
downloadphperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.tar.gz
phperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.tar.zst
phperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.zip
Merge branch 'phperkaigi-2025'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6adde68..2d2060d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,6 @@
DOCKER_COMPOSE := docker compose -f compose.local.yaml
-all: down build reset up
-
-reset:
- echo "UPDATE games SET state = 'waiting', started_at = NULL WHERE game_id = 1;" | make psql-query
+all: down build up
.PHONY: build
build:
@@ -49,6 +46,11 @@ sqldef: down
${DOCKER_COMPOSE} up --wait db
${DOCKER_COMPOSE} run --no-TTY tools psqldef < ./backend/schema.sql
+.PHONY: asynq
+asynq:
+ ${DOCKER_COMPOSE} up --wait task-db
+ ${DOCKER_COMPOSE} run tools go run github.com/hibiken/asynq/tools/asynq --uri task-db:6379 dash
+
.PHONY: init
init: build initdb