From a654247c5bf32fae1d9d55b1ef821db52bb3d6ee Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sun, 12 Feb 2012 19:46:08 +0100 Subject: [PATCH] browser --- config/deploy.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/deploy.rb b/config/deploy.rb index cf8a120..0760f04 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -43,6 +43,10 @@ set :application, 'jfn_app' namespace :assets do task :precompile, :roles => :web do + run "rm -rf #{deploy_to}current/public/assets" + run "ln -s #{deploy_to}shared/assets #{deploy_to}current/public/assets" + + run "cd #{current_path} && RAILS_ENV=production bundle exec rake assets:precompile" end