diff options
| author | mo k <mo@mokhan.ca> | 2012-05-08 07:54:05 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-05-08 07:54:05 -0600 |
| commit | 4d2e189e27e415b2527fbbcfba3265ab5bee7542 (patch) | |
| tree | 458c512718464be17901a6242a047fea9559488a | |
| parent | fd22a0f66cd8b5bd68f2d5044a110d4c05cc1a78 (diff) | |
got the deployment to staging working.
| -rw-r--r-- | capfile | 6 | ||||
| -rw-r--r-- | config/deploy.rb | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -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 diff --git a/config/deploy.rb b/config/deploy.rb index 97ed2b11..ed7ea00d 100644 --- a/config/deploy.rb +++ b/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" |
