This might help, I didn’t want to store a rails version in svn or to
make my deployment dependent on the rails site being up. Therefore, I
checked out rails 1.1.1, and created a directory called rel_1-1-1 under
my home directory. Then I created this simple task below to create a
symlink whenever it is deploying. I placed this code into the deploy.rb
file.
desc “Symlink Rails to version 1.1”
task :add_symlink_to_rails, :roles => :web do
run “ln -s ~/rails/rel_1-1-1/ #{release_path}/vendor/rails”
end
I also modified the long_deploy task to run this custom task right after
the symlink task.
desc “A task demonstrating the use of transactions.”
task :long_deploy do
transaction do
update_code
disable_web
symlink
add_symlink_to_rails
migrate
end
restart
enable_web
end
Hope this helps!