Deployment problem with Capistrano

I have everything set up that I need - SVN, webserver (Apache2.2),
mongrels, etc. Capistrano is deploying the site well enough, to a
point.

I need to create sym-links to my file-column created content
directories (in
shared) and copy the database.yml file (also from shared) into the
current folder.

I’ve written the following task:

desc “Copy the database config file over and set up sym links to the
content”
task :after_update_code do
db_config = “#{shared_path}/config/database.yml”
puts "Cropying config files and creating content sym-links… "
sudo “cp #{db_config} #{release_path}/config/”
sudo “ln -s #{shared_path}/public/product
#{release_path}/public/product”
sudo “ln -s #{shared_path}/public/preview
#{release_path}/public/preview”
end

and placed it in deploy.rb.

Typing ‘rake remote:show_tasks’ shows the task as available. Deploying
the app doesn’t work however - the .yml file isn’t copied and the
mongrels get bored and wander off. No sym-links either.

If I then type:

rake remote:after_update_code

I get:


(in D:/dev/Steel/lm)
rake aborted!
Don’t know how to build task ‘remote:after_update_code’

(See full trace by running task with --trace)


Needless to say, --trace isn’t helping much.

None of the demo tasks in the deploy.rb file work either.

Am I missing something here?

I’m developing on Windows, deploying to a Debian box.

Thanks in advance for any help!

Ben