diff options
Diffstat (limited to 'config/deploy')
-rw-r--r-- | config/deploy/refinery_setup.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/deploy/refinery_setup.rb b/config/deploy/refinery_setup.rb index da6616a..6dd0a1c 100644 --- a/config/deploy/refinery_setup.rb +++ b/config/deploy/refinery_setup.rb @@ -1,4 +1,5 @@ require 'securerandom' +require 'active_support/inflector' unless Capistrano::Configuration.respond_to?(:instance) abort "This extension requires Capistrano 2" @@ -14,13 +15,16 @@ Capistrano::Configuration.instance.load do DESC task :setup, :except => { :no_release => true } do + # Change this to your app name + site_name = "Beta"; + default_template = <<-EOF # encoding: utf-8 Refinery::Core.configure do |config| config.rescue_not_found = Rails.env.production? config.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?) - config.site_name = "Company Name" - config.base_cache_key = #{config.site_name.parameterize('_').to_sym} + config.site_name = "#{site_name}" + config.base_cache_key = "#{ActiveSupport::Inflector::parameterize(site_name, '_')}" config.authenticity_token_on_frontend = true config.dragonfly_secret = "#{SecureRandom.hex(24)}" config.ie6_upgrade_message_enabled = true |