After working around the issues in #63 , running pnpm dev:local led to an error
@sill/worker:dev:local: [Queue] Unexpected error in main loop: Error: getaddrinfo ENOTFOUND db
See the full stack dump below
I worked around this by changing the DATABASE_URL in .env to postgresql://postgres:postgres@localhost:5432/sill.
In .env.example, it's postgresql://postgres:postgres@**db**:5432/sill
So, either this should be changed in .env.example, or it needs to be mentioned in the "Local Development" section
Here's the excerpt from the log
@sill/worker:dev:local: [Queue] Unexpected error in main loop: Error: getaddrinfo ENOTFOUND db
@sill/worker:dev:local: at /Users/jdp/dev/atproto/sill/node_modules/.pnpm/pg-pool@3.10.1_pg@8.16.3/node_modules/pg-pool/index.js:45:11
@sill/worker:dev:local: at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
@sill/worker:dev:local: at async NodePgSession.transaction (/Users/jdp/dev/atproto/sill/node_modules/.pnpm/drizzle-orm@0.44.4_@types+pg@8.15.5_pg@8.16.3/node_modules/src/node-postgres/session.ts:253:24)
@sill/worker:dev:local: at async dequeueJobs (file:///Users/jdp/dev/atproto/sill/packages/links/dist/queue.js:15:12)
@sill/worker:dev:local: at async processQueue (/Users/jdp/dev/atproto/sill/apps/worker/src/process-queue.tsx:216:20) {
@sill/worker:dev:local: errno: -3008,
@sill/worker:dev:local: code: 'ENOTFOUND',
@sill/worker:dev:local: syscall: 'getaddrinfo',
@sill/worker:dev:local: hostname: 'db'
@sill/worker:dev:local: }
After working around the issues in #63 , running pnpm dev:local led to an error
@sill/worker:dev:local: [Queue] Unexpected error in main loop: Error: getaddrinfo ENOTFOUND dbSee the full stack dump below
I worked around this by changing the DATABASE_URL in .env to
postgresql://postgres:postgres@localhost:5432/sill.In .env.example, it's
postgresql://postgres:postgres@**db**:5432/sillSo, either this should be changed in .env.example, or it needs to be mentioned in the "Local Development" section
Here's the excerpt from the log