From 4062a84cb2c9a961201238adce4a5851e377f713 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 19 Apr 2013 19:31:09 +0200 Subject: Fix deploy scripts. Require the scripts in config/deploy directory so they will hook into the deploy process. Fixed deploy:refinery:setup recipe, now produces a valid config and puts it in the right spot. --- config/deploy/refinery_setup.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config/deploy') 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 -- cgit v1.2.3