diff --git a/cmd/nourybot/main.go b/cmd/nourybot/main.go index f8602ea..2889c6e 100644 --- a/cmd/nourybot/main.go +++ b/cmd/nourybot/main.go @@ -73,7 +73,7 @@ func main() { case "dev": cfg.db.dsn = os.Getenv("LOCAL_DSN") case "prod": - cfg.db.dsn = os.Getenv("SUPABASE_DSN") + cfg.db.dsn = os.Getenv("REMOTE_DSN") } // Database config variables cfg.db.maxOpenConns = 25 diff --git a/env.example b/env.example index cf08085..30898eb 100644 --- a/env.example +++ b/env.example @@ -6,7 +6,7 @@ TWITCH_CLIENT_ID=mycoolclientid TWITCH_CLIENT_SECRET=mycoolclientsecret LOCAL_DSN=postgres://user:password@localhost/database-name?sslmode=disable -SUPABASE_DSN=postgresql://user:password@databaseurlfrom.supabase.com:5432/postgres +REMOTE_DSN=postgresql://user:password@databaseurlfrom.supabase.com:5432/postgres OWM_KEY=mycoolopenweatherkey