From 72b5054d35504f09446c4b83a3d977e036036eb8 Mon Sep 17 00:00:00 2001 From: "Sebastian BURGIN-FIX (ext)" Date: Fri, 23 Oct 2026 17:53:26 +0200 Subject: [PATCH] Add DB_READ_HOST/DB_WRITE_HOST read/write hosts per laravel-start Follow the codebar laravel-start template: the pgsql connection reads its read and write host from DB_READ_HOST and DB_WRITE_HOST, both falling back to DB_HOST, and .env.example documents both variables. This lets us switch the read or write host per environment without a code change. Co-Authored-By: Claude Opus 5.5 --- .env.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.env.example b/.env.example index b67142e..1b305db 100644 --- a/.env.example +++ b/.env.example @@ -21,6 +21,8 @@ NIGHTWATCH_ENVIRONMENT_ID= DB_CONNECTION=pgsql DB_HOST=127.0.0.1 +#DB_READ_HOST=127.0.0.1 +#DB_WRITE_HOST=127.0.0.1 DB_PORT=5432 DB_DATABASE=web-codebar DB_USERNAME=postgres