augustash / capistrano-ash

August Ash recipes for Capistrano
http://augustash.com
MIT License
73 stars 12 forks source link

Wordpress symlink task symlinks to old release rather than the latest version #27

Closed grafikchaos closed 11 years ago

grafikchaos commented 11 years ago

Wordpress symlink task symlinks folders to previous release (current_release) rather than the latest release. Simply change current_release to latest_release in the following block of code

namespace :wordpress do
  desc "Links the correct settings file"
  task :symlink, :roles => :web, :except => { :no_release => true } do
    run "ln -nfs #{shared_path}/uploads #{current_release}/#{uploads_path}"
    run "ln -nfs #{shared_path}/cache #{current_release}/wp-content/cache"
    symlink_confg
  end

 # ... more code ...

end