mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-25 14:17:31 +00:00
f928f4b1ca
TREK_DB_URL could not name a Unix socket. MikroORM builds the pool from the URL's own host and drops a host parameter, so postgresql://trek@localhost/trek?host=/var/run/postgresql connected to localhost over TCP. A percent-encoded socket path as the host reached the pool, but the client tools got it undecoded in PGHOST, so backups, restores and the safety copy before a migration failed. The server address is now read once, the way libpq reads a connection URL: a host or port parameter takes the place of the URL's own, and a host written into the URL is percent-decoded. The pool and the client tools both get that address. The wiki and .env.example show the socket form.