feat(stand,seed): reproducible demo data on both stands, make seed, smoke and prodlike

This commit is contained in:
hh committed 2026-10-16 03:34:20 +00:00
1 parent 772047c0a1
commit 8b3f7e78a3
8 files changed
+3037 -1

No files matched your search

+30 -1
View File
@@ -1,6 +1,11 @@
COMPOSE := docker compose
STAND := $(COMPOSE) -f stand/docker-compose.yml
FFUI_V1_URL ?= http://127.0.0.1:30072
FFUI_V3_URL ?= http://127.0.0.1:40869
FFUI_TOKENS ?= $(HOME)/.config/ffui
SEED := bun scripts/seed/index.ts
.PHONY: env recreate rebuild restart logs down fmt check build dev
.PHONY: env recreate rebuild restart logs down fmt check build dev stand stand-down seed seed-v1 seed-v3 unseed smoke prodlike
fmt:
bun --bun run fix
@@ -40,3 +45,27 @@ logs:
down:
$(COMPOSE) down
stand:
$(STAND) up -d
stand-down:
$(STAND) stop
seed:
$(MAKE) -j2 --output-sync=target seed-v1 seed-v3
seed-v1:
$(SEED) --base $(FFUI_V1_URL) --token-file $(FFUI_TOKENS)/stand-v1.token $(SEED_FLAGS)
seed-v3:
$(SEED) --base $(FFUI_V3_URL) --token-file $(FFUI_TOKENS)/stand-v3.token $(SEED_FLAGS)
unseed:
$(MAKE) -j2 --output-sync=target seed-v1 seed-v3 SEED_FLAGS=--wipe
smoke:
FFUI_URL=$(FFUI_V3_URL) FFUI_TOKEN_FILE=$(FFUI_TOKENS)/stand-v3.token bun scripts/smoke.ts
prodlike:
$(STAND) --profile prodlike up -d --build frontend caddy