From 9cecabd0235faae9c03fa3e51fe205bcd647842f Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 19 Dec 2013 09:59:44 +1100 Subject: [PATCH] don't warn unless in production --- config/database.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.yml b/config/database.yml index 64ad0420c..7282e5f1d 100644 --- a/config/database.yml +++ b/config/database.yml @@ -48,4 +48,4 @@ production: username: <%= uri.user %> password: <%= uri.password %> host_names: - - <%= ENV["DISCOURSE_HOSTNAME"] || raise("env var for DISCOURSE_HOSTNAME must be set") %> # Update this to be the domain of your production site + - <%= ENV["DISCOURSE_HOSTNAME"] || raise("env var for DISCOURSE_HOSTNAME must be set") if Rails.env == "production" %> # Update this to be the domain of your production site