Open
Description
Summary
I got this error:
Error: getaddrinfo ENOTFOUND base
at /Users/anton/WebstormProjects/photo-site/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.withClient (/Users/anton/WebstormProjects/photo-site/node_modules/.pnpm/[email protected]/node_modules/graphile-migrate/dist/pgReal.js:73:26)
at async Object._reset (/Users/anton/WebstormProjects/photo-site/node_modules/.pnpm/[email protected]/node_modules/graphile-migrate/dist/commands/reset.js:16:5)
at async _commit (/Users/anton/WebstormProjects/photo-site/node_modules/.pnpm/[email protected]/node_modules/graphile-migrate/dist/commands/commit.js:56:5)
at async handler (/Users/anton/WebstormProjects/photo-site/node_modules/.pnpm/[email protected]/node_modules/graphile-migrate/dist/commands/commit.js:97:9)
at async Object.newHandler [as handler] (/Users/anton/WebstormProjects/photo-site/node_modules/.pnpm/[email protected]/node_modules/graphile-migrate/dist/cli.js:22:20) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'base'
}
watch works just fine
pnpm exec graphile-migrate watch --once
graphile-migrate: Up to date — no committed migrations to run
[2023-06-26T16:11:14.212Z]: Running current.sql
[2023-06-26T16:11:14.219Z]: current.sql unchanged, skipping migration
[2023-06-26T16:11:14.221Z]: Finished (7ms)
I'm running pnpm
"graphile-migrate": "^1.4.1"
posgres is running with docker:
db:
image: postgres:15.3-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app
ports:
- 5500:5432
config:
"connectionString": "postgres://postgres:postgres@localhost:5500/app",
"shadowConnectionString": "postgres://postgres:postgres@localhost:5500/app_shadow",
nodejs: 20.3.1, 18.16.1
Metadata
Metadata
Assignees
Labels
No labels
Activity