From 6da7d98163e898cac8428e37261c6afb7132dee7 Mon Sep 17 00:00:00 2001 From: Sean Grove Date: Mon, 21 Mar 2011 01:56:57 -0700 Subject: [PATCH] Pickup TLD from ENV for default domain, or fallback to manually-specified value. --- config/initializers/locomotive.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/locomotive.rb b/config/initializers/locomotive.rb index df684c9a..51cc497c 100644 --- a/config/initializers/locomotive.rb +++ b/config/initializers/locomotive.rb @@ -10,7 +10,7 @@ Locomotive.configure do |config| # during the installation wizzard. # Ex: # config.default_domain = Rails.env.production? ? 'heroku.com' : 'example.com' - config.default_domain = 'example.com' + config.default_domain = ENV["APP_TLD"] || 'example.com' # configure how many items we display in sub menu in the "Contents" section. config.lastest_items_nb = 5