lib/ash/wordpress.rb in capistrano-ash-1.2.2 vs lib/ash/wordpress.rb in capistrano-ash-1.2.3

- old
+ new

@@ -59,14 +59,14 @@ # -------------------------------------------- # Wordpress-specific methods # -------------------------------------------- namespace :wordpress do - desc "Links the correct settings file" + desc "Links the correct settings file as well as the uploads and cache directories" 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" + run "ln -nfs #{shared_path}/uploads #{latest_release}/#{uploads_path}" + run "ln -nfs #{shared_path}/cache #{latest_release}/wp-content/cache" symlink_confg end desc <<-DESC Symlink the environment-specific wp-config file \ @@ -97,6 +97,6 @@ task :protect, :except => { :no_release => true } do run "chmod 440 #{latest_release}/wp-config.php*" end end -end \ No newline at end of file +end