2010-06-03 15:32:40 +00:00
|
|
|
require File.dirname(__FILE__) + '/../../lib/locomotive.rb'
|
|
|
|
require File.dirname(__FILE__) + '/../../lib/core_ext.rb'
|
2010-04-11 23:59:18 +00:00
|
|
|
|
|
|
|
Locomotive.configure do |config|
|
2010-07-13 00:46:17 +00:00
|
|
|
# if not defined, locomotive will use example.com as main domain name. Remove prefix www from your domain name.
|
|
|
|
# Ex:
|
|
|
|
# config.default_domain = Rails.env.production? ? 'mydomain.com' : 'example.com'
|
2010-04-10 15:25:07 +00:00
|
|
|
config.default_domain = 'example.com'
|
2010-07-13 00:46:17 +00:00
|
|
|
|
|
|
|
# configure how many items we display in sub menu in the "Contents" section.
|
2010-05-26 00:41:10 +00:00
|
|
|
config.lastest_items_nb = 5
|
2010-07-13 00:46:17 +00:00
|
|
|
|
|
|
|
# tell if logs are enabled. Useful for debug purpose.
|
2010-06-11 09:29:51 +00:00
|
|
|
config.enable_logs = true
|
2010-07-13 00:46:17 +00:00
|
|
|
|
|
|
|
# tell if the application is hosted on Heroku.
|
|
|
|
# Locomotive uses heroku api to add / remove domains.
|
|
|
|
# there are 2 ways of passing heroku credentials to Locomotive
|
|
|
|
# - from ENV variables: HEROKU_LOGIN & HEROKU_PASSWORD
|
|
|
|
# - from this file
|
|
|
|
#
|
|
|
|
# Notes:
|
|
|
|
# - IMPORTANT: behaviours related to this option will only be applied in production
|
|
|
|
# - credentials coming from this file take precedence over ENV variables
|
|
|
|
#
|
|
|
|
# Ex:
|
|
|
|
# config.heroku = { :name => '<my heroku app name>', :login => 'john@doe.net', :password => 'easy' }
|
|
|
|
config.heroku = false
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|