Permalink
Browse files

slight change

  • Loading branch information...
1 parent 0a96338 commit 8fa89046100eade7df6b442e8510a7f603e5c990 @bangline committed Nov 18, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 config/deploy.rb
View
@@ -31,11 +31,13 @@
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
+end
- task :compile_assets, :roles => :web, :except => { :no_release => true } do
+namespace :assets do
+ task :compile, :roles => :web, :except => { :no_release => true } do
run "cd #{current_path}; rm -rf public/assets/*"
run "cd #{current_path}; bundle exec rake assets:precompile RAILS_ENV=production"
end
end
-before "deploy:restart", "deploy:compile_assets"
+before "deploy:restart", "assets:compile"

0 comments on commit 8fa8904

Please sign in to comment.