set :app_symlinks, %w( videos )
desc "Symlinks the :app_symlinks directories from current/public to
shared/public"
task :symlink_public do
if app_symlinks
app_symlinks.each do |link|
run "ln -nfs #{shared_path}/public/#{link} #{current_path}/
public/#{link}"
end
end
end
namespace :deploy do
task :after_symlink, :roles => [:app, :web] do
symlink_public
end
end
Комментариев нет:
Отправить комментарий