aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-04 22:55:01 +0900
committernsfisis <nsfisis@gmail.com>2025-03-08 10:12:44 +0900
commit1e6df136d8202c8adf65948527f4c3e7583b338c (patch)
tree7c82476f6bbbc71d72ab7e71e39559eca197fd95 /Makefile
parent54316868c3bec1ff9b04643dfe6c13cf56bf3246 (diff)
downloadiosdc-japan-2025-albatross-1e6df136d8202c8adf65948527f4c3e7583b338c.tar.gz
iosdc-japan-2025-albatross-1e6df136d8202c8adf65948527f4c3e7583b338c.tar.zst
iosdc-japan-2025-albatross-1e6df136d8202c8adf65948527f4c3e7583b338c.zip
websocket to polling
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