lib/ash/magento.rb in capistrano-ash-1.1.19 vs lib/ash/magento.rb in capistrano-ash-1.2.0
- old
+ new
@@ -12,13 +12,18 @@
# Task chains
# --------------------------------------------
after "deploy:setup", "deploy:setup_local"
# after "deploy:setup_shared", "pma:install"
after "deploy:finalize_update", "magento:activate_config"
- after "deploy:symlink", "magento:symlink"
- after "deploy", "magento:purge_cache"
+ # after "deploy:create_symlink", "magento:symlink"
+ # workaround for issues with capistrano v2.13.3 and
+ # before/after callbacks not firing for 'deploy:symlink'
+ # or 'deploy:create_symlink'
+ after "deploy", "magento:symlink"
+ after "magento:symlink", "magento:purge_cache"
+
# --------------------------------------------
# Overloaded tasks
# --------------------------------------------
namespace :deploy do
desc "Setup local files necessary for deployment"
@@ -121,10 +126,10 @@
puts "#{channel[:host]}: #{data}"
break if stream == :err
end
end
end
-
+
# --------------------------------------------
# Override the base.rb backup tasks
# --------------------------------------------
namespace :backup do
desc "Perform a backup of ONLY database SQL files"