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|
|
2011-04-01 00:34:19 +00:00
|
|
|
|
|
|
|
# A single locomotive instance can serve one single site or many.
|
|
|
|
# If you want to run many different websites, you will have to specify
|
|
|
|
# your own domain name (ex: locomotivehosting.com).
|
2010-12-30 14:24:47 +00:00
|
|
|
#
|
2011-01-03 13:44:38 +00:00
|
|
|
# Ex:
|
2011-04-27 16:44:49 +00:00
|
|
|
# config.multi_sites do |multi_sites|
|
|
|
|
# # each new website you add will have a default entry based on a subdomain
|
|
|
|
# # and the multi_site_domain value (ex: website_1.locomotivehosting.com).
|
|
|
|
# multi_sites.domain = 'example.com' #'myhostingplatform.com'
|
|
|
|
#
|
|
|
|
# # define the reserved subdomains
|
|
|
|
# # Ex:
|
|
|
|
# multi_sites.reserved_subdomains = %w(www admin email blog webmail mail support help site sites)
|
|
|
|
# end
|
|
|
|
config.multi_sites = false
|
2011-04-01 00:34:19 +00:00
|
|
|
|
|
|
|
# configure the hosting target for the production environment. Locomotive can be installed in:
|
|
|
|
# - your own server
|
|
|
|
# - Heroku (you need to create an account in this case)
|
2011-04-04 00:03:23 +00:00
|
|
|
# - Bushi.do (see the bushi.do website for more explanations)
|
2011-04-01 00:34:19 +00:00
|
|
|
#
|
|
|
|
# the possible options are: server, heroku, bushido or auto (default)
|
|
|
|
# if you select 'auto', Locomotive will look after specific ENV variables to check
|
2011-04-04 00:03:23 +00:00
|
|
|
# the matching platform (Heroku and Bushido set their own ENV variables).
|
2011-04-01 00:34:19 +00:00
|
|
|
#
|
|
|
|
config.hosting = :auto
|
|
|
|
|
|
|
|
# In case you host Locomotive in Heroku, the engine uses the heroku api to add / remove domains.
|
|
|
|
# there are 2 ways of passing heroku credentials to Locomotive
|
|
|
|
# - from ENV variables: HEROKU_LOGIN & HEROKU_PASSWORD
|
2011-04-04 00:03:23 +00:00
|
|
|
# - from this file, see the example below and uncomment it if needed
|
2011-04-01 00:34:19 +00:00
|
|
|
# config.heroku = {
|
2011-04-26 23:12:32 +00:00
|
|
|
# :login => '<your_heroku_login>',
|
2011-04-01 00:34:19 +00:00
|
|
|
# :password => '<your_heroku_password>'
|
|
|
|
# }
|
|
|
|
|
2011-04-28 15:17:15 +00:00
|
|
|
# Locomotive uses the DelayedJob gem for the site import module.
|
2011-04-01 00:34:19 +00:00
|
|
|
# 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.
|
2011-04-28 15:17:15 +00:00
|
|
|
#
|
|
|
|
# Warning: this option is not used if you deploy on bushi.do and we set automatically the value to true.
|
2011-04-01 00:34:19 +00:00
|
|
|
config.delayed_job = false
|
2010-07-23 20:09:54 +00:00
|
|
|
|
|
|
|
# configure how many items we display in sub menu in the "Contents" section.
|
2011-04-24 23:21:38 +00:00
|
|
|
# config.lastest_items_nb = 5
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2011-05-04 11:05:16 +00:00
|
|
|
# default locale (for now, only en, de, fr, pt-BR and it are supported)
|
2011-04-01 00:34:19 +00:00
|
|
|
config.default_locale = :en
|
|
|
|
|
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
|
|
|
|
2011-04-01 00:34:19 +00:00
|
|
|
# Configure the e-mail address which will be shown in the DeviseMailer, NotificationMailer, ...etc
|
|
|
|
# if you do not put the domain name in the email, Locomotive will take the default domain name depending
|
|
|
|
# on your deployment target (server, Heroku, Bushido, ...etc)
|
2010-07-13 00:46:17 +00:00
|
|
|
#
|
2011-04-01 00:34:19 +00:00
|
|
|
# Ex:
|
|
|
|
# config.mailer_sender = 'support'
|
|
|
|
# # => 'support@heroku.com' (Heroku), 'support@bushi.do' (Bushido), 'support@example.com' (Dev) or 'support@<your_hosting_platform>' (Multi-sites)
|
|
|
|
config.mailer_sender = 'support'
|
2011-04-24 23:21:38 +00:00
|
|
|
end unless Locomotive.engine? || Rails.env.test?
|