ops: live SMS creds on .13; seed-admin cmd in make db-up (admin survives DB resets)

This commit is contained in:
2026-08-10 10:07:29 +10:00
parent e1044f8c32
commit 17150c405d
5 changed files with 101 additions and 3 deletions

View File

@@ -4,10 +4,10 @@ SESSION_SECRET ?= dev-secret-change-me # dev only — set a real secret in pro
export DATABASE_URL
export SESSION_SECRET
.PHONY: db-up seed seed-registry run build generate psql
.PHONY: db-up seed seed-registry seed-admin run build generate psql
db-up: ## apply db/schema.sql (embedded migrator, no psql needed)
cd frontend && go run ./cmd/migrate -schema ../db/schema.sql
db-up: ## apply schema + ensure the admin user exists
cd frontend && go run ./cmd/migrate -schema ../db/schema.sql && go run ./cmd/seed-admin
seed: ## insert test tag codes TEST000001..TEST000025
cd frontend && go run ./cmd/seed