diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-01-02 20:42:01 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-01-05 12:33:59 +0100 |
commit | b21316248572cb27ed1f504529ad6680a473022e (patch) | |
tree | f8a2f81258cae3b1d2429fb7df5a3287954b683a /src/DB.php | |
parent | f621d95f89ded05a2e916c5ee363bfe75ea37482 (diff) |
gemini
Diffstat (limited to 'src/DB.php')
-rw-r--r-- | src/DB.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,11 +9,12 @@ class DB { { $driver = $_ENV['DB_DRIVER'] ?? 'pgsql'; $host = $_ENV['DB_HOST'] ?? 'db'; + $port = $_ENV['DB_PORT'] ?? 5432; $dbname = $_ENV['DB_NAME']; $user = $_ENV['DB_USER']; $password = $_ENV['DB_PASSWORD']; - self::$connection = new \PDO("pgsql:host=$host;dbname=$dbname", $user, $password); + self::$connection = new \PDO("pgsql:host=$host;port=$port;dbname=$dbname", $user, $password); } /** |