From 2a54f591c810b1c8981c5329df3b2632243555b7 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Tue, 8 Aug 2023 01:22:49 +0200 Subject: [PATCH] rename SUPABASE_DSN to REMOTE_DSN --- cmd/nourybot/main.go | 2 +- env.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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