diff options
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.lock | 2 | ||||
-rw-r--r-- | config/deploy.rb | 9 |
3 files changed, 3 insertions, 9 deletions
@@ -36,7 +36,6 @@ gem 'xapian-full-alaveteli', '~> 1.2.9.5' gem 'xml-simple' gem 'zip' gem 'capistrano' -gem 'cape' group :test do gem 'fakeweb' diff --git a/Gemfile.lock b/Gemfile.lock index 15d56c40c..2a15e1bae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -19,7 +19,6 @@ GEM activesupport (= 2.3.14) activesupport (2.3.14) annotate (2.4.0) - cape (1.4.0) capistrano (2.13.3) highline net-scp (>= 1.0.0) @@ -87,7 +86,6 @@ PLATFORMS DEPENDENCIES annotate - cape capistrano fakeweb fast_gettext (>= 0.6.0) diff --git a/config/deploy.rb b/config/deploy.rb index 267ede34e..1810185a0 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,5 +1,4 @@ require 'bundler/capistrano' -require 'cape' # Deploy to staging by default unless you specify '-S stage=production' on the command line set :stage, 'staging' unless exists? :stage @@ -19,11 +18,9 @@ set :use_sudo, false server configuration['server'], :app, :web, :db, :primary => true namespace :rake do - Cape do - # Don't simply mirror all rake tasks because of a issue with Cape - # https://github.com/njonsson/cape/issues/7 - mirror_rake_tasks 'themes:install' do |env| - env['RAILS_ENV'] = rails_env + namespace :themes do + task :install do + run "cd #{release_path} && bundle exec rake themes:install RAILS_ENV=#{rails_env}" end end end |