From 6e16bc7bc35e9df185a144a837cb833353249318 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sun, 6 Sep 2015 17:02:52 +0200 Subject: [PATCH 1/2] uses capistrano assets standard task --- Capfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Capfile b/Capfile index 053d1feb9..3e0bb4329 100644 --- a/Capfile +++ b/Capfile @@ -6,7 +6,7 @@ require 'capistrano/deploy' require 'capistrano/rvm' require 'capistrano/bundler' -#require 'capistrano/rails/assets' +require 'capistrano/rails/assets' require 'capistrano/rails/migrations' #require 'capistrano/passenger' require 'capistrano/delayed-job' From 554d58b620c456b9ed56646a1a605da46c563426 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sun, 6 Sep 2015 17:04:25 +0200 Subject: [PATCH 2/2] comments out custom capistrano asset task --- config/deploy.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 75a84a1e0..5c1c73ff3 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -47,14 +47,15 @@ set(:config_files, %w( sidekiq.yml )) - namespace :deploy do # Check right version of deploy branch # before :deploy, "deploy:check_revision" # Run test aund continue only if passed # before :deploy, "deploy:run_tests" - # Compile assets locally and then rsync - after 'deploy:symlink:shared', 'deploy:compile_assets_locally' + + # Custom compile and rsync of assets - works, but it is very slow + #after 'deploy:symlink:shared', 'deploy:compile_assets_locally' + after :finishing, 'deploy:beta_testers' after :finishing, 'deploy:cleanup' # Restart unicorn