Add a bushido switch inside locomotive.rb initializer

This commit is contained in:
Sean Grove 2011-03-21 03:45:38 -07:00
parent 953ed52b87
commit 0476ef8235

View File

@ -32,6 +32,14 @@ Locomotive.configure do |config|
# config.heroku = { :name => '<my heroku app name>', :login => 'john@doe.net', :password => 'easy' }
config.heroku = false
# tell if the application is hosted on Bushido.
# If enabled, there's no further configuration needed.
# Bushido will take care of eveything
#
# Ex:
# config.bushido = true
config.bushido = false
# 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.
@ -41,5 +49,5 @@ Locomotive.configure do |config|
config.default_locale = :en
# Configure the e-mail address which will be shown in the DeviseMailer, NotificationMailer, ...etc
config.mailer_sender = 'support@example.com'
config.mailer_sender = ENV['BUSHIDO_DOMAIN'] ? "support@#{ENV['BUSHIDO_DOMAIN']}" : 'support@example.com'
end