Hi all,
I want to love capistrano and I’m so close.
My error is occuring while running the update_code task… (apologies
for the shell spew)
- executing “rm -rf
/home/henster29/sites/glitter/releases/20060316143447/log
/home/henster29/sites/glitter/releases/20060316143447/public/system
&&\n ln -nfs /home/henster29/sites/glitter/shared/log
/home/henster29/sites/glitter/releases/20060316143447/log &&\n ln
-nfs /home/henster29/sites/glitter/shared/system
/home/henster29/sites/glitter/releases/20060316143447/public/system”
servers: [“aidlife.textdriven.com”]
[aidlife.textdriven.com] executing command
** [out :: aidlife.textdriven.com] ln:
/home/henster29/sites/glitter/releases/20060316143447/public/system:
No such file or directory
command finished
Ah, so its trying to make a symbolic link to a dir that doesnt exist…
I checked the gems/capistrano-1.1.0/lib/capistrano/recipes/standard.rb
which seems to be the source and found this…
task :update_code, :roles => [:app, :db, :web] do
on_rollback { delete release_path, :recursive => true }
source.checkout(self)
run <<-CMD
rm -rf #{release_path}/log #{release_path}/public/system &&
ln -nfs #{shared_path}/log #{release_path}/log &&
ln -nfs #{shared_path}/system #{release_path}/public/system
CMD
end
Which looks like (to me) that it blows away
#{release_path}/public/system and then tries to make a link in there.
I must be talking crap since this works for everyone else… Any ideas?
Thanks
-henry