Commit 4d2e189e
config/deploy.rb
@@ -2,7 +2,7 @@ $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"
set :rvm_ruby_string, 'ruby-1.9.2-p290@cakeside'
set :rvm_type, :system
-require 'bundler/capistrano' # loads RVM's capistrano plugin
+#require 'bundler/capistrano' # loads RVM's capistrano plugin
set :stages, %w(production staging)
set :default_stage, "staging"
require 'capistrano/ext/multistage'
@@ -23,7 +23,7 @@ set :deploy_env, 'production'
set :scm_verbose, true
# ugly workaround for bug https://github.com/capistrano/capistrano/issues/81
-before "deploy:assets:precompile", "bundle:install"
+before "deploy:assets:precompile", "update_bundler"
# remove old releases
-after "deploy", "deploy:cleanup"
+#after "deploy", "deploy:cleanup"
capfile
@@ -15,7 +15,6 @@ task :show_free_space, :roles => :web do
run "df -h /"
end
-
task :stop_sphinx , :roles => :app do
run "cd #{current_path} && rake thinking_sphinx:stop RAILS_ENV=production"
end
@@ -32,3 +31,8 @@ task :restart_sphinx, :roles => :app do
stop_sphinx
start_sphinx
end
+
+task :update_bundler do
+ run "bundle install --gemfile #{release_path}/Gemfile"
+ #run "bundle exec rake db:migrate"
+end