Problem with deploying using Capistrano from Windows

I’m trying to learn how to deploy apps from my Windows development box.
My
host is Dreamhost. I’m following this tutorial:

http://wiki.dreamhost.com/index.php/Capistrano

I’ve set up a sub-domain.
I’ve created a Rails app and put it into my subversion repository as per
the
tutorial.
I’ve run “cap setup” and that runs ok.
When I run “cap deploy” it connects to the server and it puts my app up
there - I can see it in one of the releases folders.
However, the process fails saying:

" ** [out :: delipaste.icuo.us] bash: line 1:
/home/tdonaghe/delipaste.icuo.us/current/script/process/reaper:
Permission
denied"

Sure enough, when I look in that directory up on the server (in
delipaste.icuo.ushttps://webftp.dreamhost.com/index.php?ftpserver=plenty.dreamhost.com&ftpserverport=21&username=tdonaghe&password_encrypted=613861626F6630323235&language=en&skin=blue&ftpmode=binary&passivemode=yes&sslconnect=no&viewmode=list&sort=&sortorder=&state=browse&state2=main&directory=/delipaste.icuo.us/
releaseshttps://webftp.dreamhost.com/index.php?ftpserver=plenty.dreamhost.com&ftpserverport=21&username=tdonaghe&password_encrypted=613861626F6630323235&language=en&skin=blue&ftpmode=binary&passivemode=yes&sslconnect=no&viewmode=list&sort=&sortorder=&state=browse&state2=main&directory=/delipaste.icuo.us/releases/
20060916053057https://webftp.dreamhost.com/index.php?ftpserver=plenty.dreamhost.com&ftpserverport=21&username=tdonaghe&password_encrypted=613861626F6630323235&language=en&skin=blue&ftpmode=binary&passivemode=yes&sslconnect=no&viewmode=list&sort=&sortorder=&state=browse&state2=main&directory=/delipaste.icuo.us/releases/20060916053057/
scripthttps://webftp.dreamhost.com/index.php?ftpserver=plenty.dreamhost.com&ftpserverport=21&username=tdonaghe&password_encrypted=613861626F6630323235&language=en&skin=blue&ftpmode=binary&passivemode=yes&sslconnect=no&viewmode=list&sort=&sortorder=&state=browse&state2=main&directory=/delipaste.icuo.us/releases/20060916053057/script/process),
I
see that the permissions are not set so that the reaper file is
executable
(it looks like rw-r–r–).

I have no way to do a “chmod” on the file in windows, do I? I can’t fix
it
in that releases directory either, because the next time I run “cap
deploy”
it puts a new version of the files up there and reaper is still not
executable.

How can I get Capistrano to deploy reaper in such a way that it’s
executable? What should I do?

Thanks for any help!!


Terry (TAD) Donaghe
http://www.tadspot.com

You can issue the chmod after a code update.

You should have a task (or you can create it) called
after_code_update, that automatically runs after it updates the code
into a releases dir – where you can issue the chmod command:

desc “Tasks to execute after code update”
task :after_update_code, :roles => [:app, :db] do

fix permissions

run “chmod +x #{release_path}/script/spawner”
run “chmod +x #{release_path}/script/spawner”
end

hope that helps,

On 9/16/06, Terry D. [email protected] wrote:

there - I can see it in one of the releases folders.


Terry (TAD) Donaghe
http://www.tadspot.com
http://www.rubynoob.com


Charles Brian Q.
self-promotion: www.seebq.com
highgroove studios: www.highgroove.com
slingshot hosting: www.slingshothosting.com

Well, I tried dropping the task Charles wrote at the bottom of deploy.rb
and
now when I do “cap deploy” it stops again because it looks like it’s
trying
to “chmod” those files before they exist.

  • executing “chmod +x
    /home/tdonaghe/delipaste.icuo.us/releases/20060916150540/script/spawner”
    servers: [“delipaste.icuo.us”]
    [delipaste.icuo.us] executing command
    ** [out :: delipaste.icuo.us] chmod: cannot access
    `/home/tdonaghe/delipaste.icuo.us/releases/20060916150540/script/spawner’:
    No such file or directory

And sure enough there is no 20060916150540 directory under the releases
directory.

Can someone please let me know what I’m doing wrong or what else I can
try?

Thanks!!

On 9/16/06, Terry D. [email protected] wrote:

Terry

I’m trying to learn how to deploy apps from my Windows development
When I run “cap deploy” it connects to the server and it puts my app
see that

Terry (TAD) Donaghe
http://www.tadspot.com
http://www.rubynoob.com


Terry (TAD) Donaghe
http://www.tadspot.com

Thanks Charles!

Umm… I have no idea where that bit of code might go… Which file and
where?

Sorry - I’m awful new to doing anything with Capistrano.

Thanks again.

Terry

On 9/16/06, Charles Brian Q. [email protected] wrote:

fix permissions

Thanks for any help!!
Charles Brian Q.
self-promotion: www.seebq.com
highgroove studios: www.highgroove.com
slingshot hosting: www.slingshothosting.com


Terry (TAD) Donaghe
http://www.tadspot.com