将上传图片的目录进行共享

This commit is contained in:
yafei Lee 2012-06-25 08:15:24 +08:00
parent 6eabd4f397
commit 4b808d1123
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ role :db, "yafeilee.me", :primary => true # This is where Rails migrations will
#
set :deploy_to, "/home/ruby/app_wblog"
before "deploy:finalize_update","link_uploads"
task :link_uploads do
run "ln -nsf #{shared_path}/uploads #{release_path}/public/uploads"
end
# If you are using Passenger mod_rails uncomment this:
namespace :deploy do