Permalink
Browse files

Added a Rails 3.1 asset pre-compile example.

  • Loading branch information...
Michael van Rooijen
Michael van Rooijen committed Sep 20, 2011
1 parent 7fbf22f commit c63dfb61fb38b52fc7f3f3e9da9c499640a3c7f7
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/ruby_vps/cli/templates/capistrano/deploy.rb
@@ -29,10 +29,9 @@
# must be defined inside "task :restart do; end" or a previously invoked task.
namespace :deploy do
task :restart do
- run "cd #{release_path} && rake db:create db:migrate"
+ # Example for pre-compiling assets in >= Rails 3.1
+ # run "cd #{release_path} && RAILS_ENV=production bundle exec rake assets:precompile"
end
-
- # ... define more custom tasks here if needed ...
end
# Tasks:

0 comments on commit c63dfb6

Please sign in to comment.