2010-06-03 15:32:40 +00:00
|
|
|
require File.dirname(__FILE__) + '/../../lib/locomotive.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-12-30 14:24:47 +00:00
|
|
|
#
|
|
|
|
# If you use locomotive for a single site in Heroku, use "heroku.com" as default domain name.
|
|
|
|
# Your heroku app name (<app_name>.heroku.name) will be used as the sub domain name in Locomotive
|
|
|
|
# during the installation wizzard.
|
2011-01-03 13:44:38 +00:00
|
|
|
# Ex:
|
|
|
|
# config.default_domain = Rails.env.production? ? 'heroku.com' : 'example.com'
|
2010-04-10 15:25:07 +00:00
|
|
|
config.default_domain = 'example.com'
|
2010-07-23 20:09:54 +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-23 20:09:54 +00:00
|
|
|
|
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-23 20:09:54 +00:00
|
|
|
|
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
|
|
|
|
#
|
2010-07-23 20:09:54 +00:00
|
|
|
# Notes:
|
|
|
|
# - IMPORTANT: behaviours related to this option will only be applied in production
|
2010-07-13 00:46:17 +00:00
|
|
|
# - credentials coming from this file take precedence over ENV variables
|
2010-07-23 20:09:54 +00:00
|
|
|
#
|
2010-07-13 00:46:17 +00:00
|
|
|
# Ex:
|
|
|
|
# config.heroku = { :name => '<my heroku app name>', :login => 'john@doe.net', :password => 'easy' }
|
|
|
|
config.heroku = false
|
2010-10-27 00:11:44 +00:00
|
|
|
|
2010-12-16 23:42:38 +00:00
|
|
|
# Locomotive uses the DelayedJob gem for the theme import module.
|
|
|
|
# In case you want to deploy to Heroku, you will have to pay for an extra dyno.
|
|
|
|
# If you do not mind about importing theme without DelayedJob, disable it.
|
2010-12-19 20:34:01 +00:00
|
|
|
config.delayed_job = false
|
2010-12-16 23:42:38 +00:00
|
|
|
|
2010-10-27 00:11:44 +00:00
|
|
|
# default locale (for now, only en and fr are supported)
|
|
|
|
config.default_locale = :en
|
2011-01-18 14:24:42 +00:00
|
|
|
|
|
|
|
# Configure the e-mail address which will be shown in the DeviseMailer, NotificationMailer, ...etc
|
|
|
|
config.mailer_sender = 'support@example.com'
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|