Pickup TLD from ENV for default domain, or fallback to manually-specified value.

This commit is contained in:
Sean Grove 2011-03-21 01:56:57 -07:00
parent d270bf8f69
commit 6da7d98163

View File

@ -10,7 +10,7 @@ Locomotive.configure do |config|
# during the installation wizzard. # during the installation wizzard.
# Ex: # Ex:
# config.default_domain = Rails.env.production? ? 'heroku.com' : 'example.com' # 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. # configure how many items we display in sub menu in the "Contents" section.
config.lastest_items_nb = 5 config.lastest_items_nb = 5