Commit 612c0c73

mo k <mo@mokhan.ca>
2012-06-07 04:20:24
remove bundle install and db:migrate steps from deployment.
1 parent ae48b3d
Changed files (2)
config/deploy.rb
@@ -24,7 +24,7 @@ set :deploy_env, 'production'
 set :scm_verbose, true
 
 # ugly workaround for bug https://github.com/capistrano/capistrano/issues/81
-before "deploy:assets:precompile", "update_bundler"
+#before "deploy:assets:precompile", "update_bundler"
 
 # remove old releases
-#after "deploy", "deploy:cleanup"
+after "deploy", "deploy:cleanup"
capfile
@@ -1,7 +1,7 @@
 load 'deploy' if respond_to?(:namespace) # cap2 differentiator
-load 'deploy/assets'
+#load 'deploy/assets'
 Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
-load 'config/deploy' # remove this line to skip loading any of the default tasks
+#load 'config/deploy' # remove this line to skip loading any of the default tasks
 
 task :search_libs, :roles => :web do
   run "ls -x1 /usr/lib | grep -i xml"
@@ -33,8 +33,8 @@ task :restart_sphinx, :roles => :app do
 end
 
 task :update_bundler do
-  run "bundle install --gemfile #{release_path}/Gemfile"
-  run "cd #{release_path} && bundle exec rake db:migrate RAILS_ENV=production && bundle exec rake db:seed RAILS_ENV=production"
+  #run "bundle install --gemfile #{release_path}/Gemfile"
+  #run "cd #{release_path} && bundle exec rake db:migrate RAILS_ENV=production && bundle exec rake db:seed RAILS_ENV=production"
 end
 
 task :backup_db do