mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
rename database dsn
This commit is contained in:
parent
a682749db0
commit
6ba60a54a6
|
@ -80,9 +80,9 @@ func main() {
|
|||
|
||||
switch envFlag {
|
||||
case "dev":
|
||||
cfg.db.dsn = os.Getenv("REMOTE_DSN")
|
||||
cfg.db.dsn = os.Getenv("DEV_DSN")
|
||||
case "prod":
|
||||
cfg.db.dsn = os.Getenv("REMOTE_DSN")
|
||||
cfg.db.dsn = os.Getenv("PROD_DSN")
|
||||
}
|
||||
// Database config variables
|
||||
cfg.db.maxOpenConns = 25
|
||||
|
|
|
@ -8,7 +8,7 @@ services:
|
|||
ports:
|
||||
- "127.0.0.1:55432:5432"
|
||||
volumes:
|
||||
- "./data:/var/lib/postgresql/data"
|
||||
- data:/var/lib/postgresql/data
|
||||
nourybot:
|
||||
build:
|
||||
context: .
|
||||
|
|
Loading…
Reference in a new issue