From a6a003fa5e455e12addc036179dad9f57230f240 Mon Sep 17 00:00:00 2001 From: Till JS Date: Fri, 8 May 2026 13:47:44 +0200 Subject: [PATCH] fix(dev): mana-notify dev script ships explicit DATABASE_URL The Go service defaults to postgresql://mana:mana@... but the local docker-compose postgres uses devpassword (matches every other service + .env.development). Without the override the notify worker died on boot with "failed SASL auth". Inline the URL on the script so dev:cardecky:full + dev:notify both work out of the box. Long-term the right home for this is an .env file the Go service reads, but that's a separate refactor across all Go services in the monorepo. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ae3178c4..3b7517441 100644 --- a/package.json +++ b/package.json @@ -235,7 +235,7 @@ "dev:search": "cd services/mana-search && PORT=3021 SEARXNG_URL=http://localhost:8080 REDIS_HOST=localhost REDIS_PORT=6379 REDIS_PASSWORD=${REDIS_PASSWORD:-devpassword} go run ./cmd/server", "dev:crawler": "cd services/mana-crawler && go run ./cmd/server", "dev:credits": "cd services/mana-credits && bun run --watch src/index.ts", - "dev:notify": "cd services/mana-notify && go run ./cmd/server", + "dev:notify": "cd services/mana-notify && DATABASE_URL=postgresql://mana:devpassword@localhost:5432/mana_notify go run ./cmd/server", "questions:dev": "turbo run dev --filter=questions...", "dev:questions:web": "pnpm --filter @questions/web dev", "dev:questions:app": "concurrently -n api,web -c yellow,cyan \"pnpm dev:api\" \"pnpm dev:questions:web\"",