rename database dsn

This commit is contained in:
lyx0 2023-12-03 23:56:25 +01:00
parent a682749db0
commit 6ba60a54a6
2 changed files with 3 additions and 3 deletions

View file

@ -80,9 +80,9 @@ func main() {
switch envFlag { switch envFlag {
case "dev": case "dev":
cfg.db.dsn = os.Getenv("REMOTE_DSN") cfg.db.dsn = os.Getenv("DEV_DSN")
case "prod": case "prod":
cfg.db.dsn = os.Getenv("REMOTE_DSN") cfg.db.dsn = os.Getenv("PROD_DSN")
} }
// Database config variables // Database config variables
cfg.db.maxOpenConns = 25 cfg.db.maxOpenConns = 25

View file

@ -8,7 +8,7 @@ services:
ports: ports:
- "127.0.0.1:55432:5432" - "127.0.0.1:55432:5432"
volumes: volumes:
- "./data:/var/lib/postgresql/data" - data:/var/lib/postgresql/data
nourybot: nourybot:
build: build:
context: . context: .