Skip to content
Extraits de code Groupes Projets
Valider d7bc014f rédigé par Steven Hancock's avatar Steven Hancock Validation de Maxwell Salzberg
Parcourir les fichiers

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. :)
parent b48d5fb9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
# the COPYRIGHT file. # the COPYRIGHT file.
load 'deploy' if respond_to?(:namespace) # cap2 differentiator 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) } Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy' # remove this line to skip loading any of the default tasks load 'config/deploy' # remove this line to skip loading any of the default tasks
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter