cmaksymenko / avalanchecms

Avalanche is a CMS for AI-generated art. Refine, safeguard and publish your works with confidence.
Apache License 2.0
3 stars 1 forks source link

Investigate pgAdmin Initialization with Database Connection in Local Development Setup #1

Closed cmaksymenko closed 9 months ago

cmaksymenko commented 10 months ago

In our local development setup, we aim to streamline the initialization of pgAdmin while ensuring it connects seamlessly to the database. Currently, when pgAdmin is initialized for the first time, it lacks preconfigured connections to our PostgreSQL database. The goal is to implement a mechanism that automates the creation of connection details, including secrets, and injects them into pgAdmin's configuration.

cmaksymenko commented 9 months ago

Solution, defined servers.json and pointed with PGADMIN_SERVER_JSON_FILE to it - pgAdmin automatically initializes on that. The only thing the user has to do then is to enter the PostgreSQL Admin User secret, when opening the connection.