diff --git a/.env.template b/.env.template index 6bf2106..0eea31b 100644 --- a/.env.template +++ b/.env.template @@ -5,7 +5,7 @@ DB_HOST= DB_PORT= DB_NAME= -#OR DB_URL= +#OR DATABASE_URL= SMTP_SERVER= diff --git a/mailer.rb b/mailer.rb index 869b046..4f8b1a7 100644 --- a/mailer.rb +++ b/mailer.rb @@ -14,7 +14,7 @@ require 'tempfile' # Load environment variables from.env file Dotenv.load -DB_URL = ENV.fetch('DB_URL') +DB_URL = ENV.fetch('DATABASE_URL') DB_USER = ENV.fetch('DB_USER') DB_PASSWORD = ENV.fetch('DB_PASSWORD')