lib/alchemy/capistrano.rb in alchemy_cms-2.1.5 vs lib/alchemy/capistrano.rb in alchemy_cms-2.1.6

- old
+ new

@@ -4,11 +4,11 @@ require "alchemy/mount_point" Capistrano::Configuration.instance(:must_exist).load do after "deploy:setup", "alchemy:shared_folders:create" - after "deploy:symlink", "alchemy:shared_folders:symlink" + after "deploy:finalize_update", "alchemy:shared_folders:symlink" before "deploy:start", "alchemy:db:seed" namespace :alchemy do namespace :shared_folders do @@ -25,14 +25,14 @@ # This task sets the symlinks for uploads, picture cache and ferret index folder. # Call after deploy:symlink like +after "deploy:symlink", "alchemy:symlink_folders"+ in your +deploy.rb+. desc "Sets the symlinks for uploads, picture cache and ferret index folder. Call after deploy:symlink" task :symlink, :roles => :app do - run "rm -rf #{current_path}/uploads" - run "ln -nfs #{shared_path}/uploads #{current_path}/" - run "ln -nfs #{shared_path}/cache/* #{current_path}/public/" - run "rm -rf #{current_path}/index" - run "ln -nfs #{shared_path}/index #{current_path}/" + run "rm -rf #{release_path}/uploads" + run "ln -nfs #{shared_path}/uploads #{release_path}/" + run "ln -nfs #{shared_path}/cache/* #{release_path}/public/" + run "rm -rf #{release_path}/index" + run "ln -nfs #{shared_path}/index #{release_path}/" end end desc "Upgrades production database to current Alchemy CMS version"