Open SPAHI4 opened 1 year ago
OK I found that it is a result of missing ROOT_DATABASE_URL
and it becomes template1
by default
I think it needs some kind of warning because no information is confusing.
I have ROOT_DATABASE_URL set and still having the same problem.
Most likely you are facing a configuration or environmental variable issue @nubunto.
I also have ROOT_DATABASE_URL set, but I get this error while executing the afterReset hook
Error: connect ECONNREFUSED ::1:5432
My ROOT_DATABASE_URL is for a Unix-domain socket. I can run psql "$ROOT_DATABASE_URL"
or other migrate commands successfully.
My issue might be different than nubunto's. I fixed it by using the "socket:" url scheme from https://www.npmjs.com/package/pg-connection-string. It appears not all libpq compatible connection strings are supported.
Summary
I got this error:
watch works just fine
I'm running pnpm
posgres is running with docker:
config:
nodejs: 20.3.1, 18.16.1