Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make Capistrano precompile assets on deploy

This is straight out of the Rails guide. :)

Capistrano (v2.8.0 and above) includes a recipe to handle asset
precompiling in deployment. Since Gemfile.lock says we're using
v2.9.0 anyway, we should be using this to make life easier for
podmins who use Capistrano to deploy. :)
  • Loading branch information...
commit d7bc014fa6bca073019ee5ec1f05a0ce4337319a 1 parent b48d5fb
@stevenh512 stevenh512 authored maxwell committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  Capfile
View
3  Capfile
@@ -3,6 +3,9 @@
# the COPYRIGHT file.
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+# Precompile assets in deployment (for Capistrano >= 2.8.0)
+load 'deploy/assets' if respond_to?(:namespace)
+
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy' # remove this line to skip loading any of the default tasks
Please sign in to comment.
Something went wrong with that request. Please try again.