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
Wordpress symlink task symlinks folders to previous release (
current_release
) rather than the latest release. Simply changecurrent_release
tolatest_release
in the following block of code