lib/ms_deploy/recipes/deploy/assets.rb in ms_deploy-0.0.1 vs lib/ms_deploy/recipes/deploy/assets.rb in ms_deploy-0.0.2
- old
+ new
@@ -1,12 +1,18 @@
Capistrano::Configuration.instance.load do
namespace :deploy do
- desc "Compile assets"
- task :assets do
- run "cd #{release_path}; RAILS_ENV=#{rails_env} #{rake} assets:precompile"
- end
- end
+ namespace :assets, :roles => :web do
+ desc "Compile assets"
+ task :compile do
+ run "cd #{release_path}; RAILS_ENV=#{rails_env} #{rake} assets:precompile"
+ end
- after 'deploy:symlink_dependencies', 'deploy:assets'
+ task :symlink, :roles => :web, :except => {:no_release => true} do
+ # fixme do nothing, rails 3.1
+ end
+ after 'deploy:symlink_dependencies', 'deploy:assets:compile'
+
+ end
+ end
end