Should be able to deploy

This commit is contained in:
cdricms
2025-01-18 21:13:03 +01:00
parent eb9883a1c3
commit 2046a32202
15 changed files with 248 additions and 51 deletions

View File

@@ -41,12 +41,14 @@ func main() {
environ := os.Getenv("ENVIRONMENT")
port := os.Getenv("BACKEND_DOCKER_PORT")
hostname := os.Getenv("DATABASE_HOSTNAME")
if environ == "DEV" {
port = os.Getenv("BACKEND_PORT")
hostname = "localhost"
}
dsn := core.DSN{
Hostname: "localhost",
Hostname: hostname,
Port: os.Getenv("POSTGRES_PORT"),
DBName: os.Getenv("POSTGRES_DB"),
User: os.Getenv("POSTGRES_USER"),