# Problem with deploying using Capistrano from Windows

**URL:** <https://www.ruby-forum.com/t/problem-with-deploying-using-capistrano-from-windows/68881>\
**Category:** Rails\
**Created:** [September 16, 2006, 7:51am UTC](https://www.ruby-forum.com/t/problem-with-deploying-using-capistrano-from-windows/68881 "2006-09-16T07:51:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 16, 2006, 7:51am UTC](https://www.ruby-forum.com/t/problem-with-deploying-using-capistrano-from-windows/68881/1 "2006-09-16T07:51:58Z")

</div>

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](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](http://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.us](http://delipaste.icuo.us)[https://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](https://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[https://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](https://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[https://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](https://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[https://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](https://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](http://www.tadspot.com)

> **[太阳集团0638开头的网址✅【欢迎下载】](http://www.rubynoob.com)**
>
> 太阳集团0638开头的网址是一家创办历史悠久并且具有非常高的知名度的在线网娱乐平台为大家提供一个良好的彩票交流平台。

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 16, 2006, 3:42pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-using-capistrano-from-windows/68881/2 "2006-09-16T15:42:32Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> there - I can see it in one of the releases folders.
> 
> –  
> Terry (TAD) Donaghe  
> [http://www.tadspot.com](http://www.tadspot.com)  
> [http://www.rubynoob.com](http://www.rubynoob.com)
> 
> >

–  
Charles Brian Q.  
self-promotion: [www.seebq.com](http://www.seebq.com)  
highgroove studios: [www.highgroove.com](http://www.highgroove.com)  
slingshot hosting: [www.slingshothosting.com](http://www.slingshothosting.com)

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 16, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-using-capistrano-from-windows/68881/3 "2006-09-16T17:10:40Z")

</div>

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](http://delipaste.icuo.us)”]  
[[delipaste.icuo.us](http://delipaste.icuo.us)] executing command  
\*\* [out :: [delipaste.icuo.us](http://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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.tadspot.com)  
> [http://www.rubynoob.com](http://www.rubynoob.com)

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

> **[太阳集团0638开头的网址✅【欢迎下载】](http://www.rubynoob.com)**
>
> 太阳集团0638开头的网址是一家创办历史悠久并且具有非常高的知名度的在线网娱乐平台为大家提供一个良好的彩票交流平台。

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 16, 2006, 4:40pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-using-capistrano-from-windows/68881/4 "2006-09-16T16:40:36Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> # fix permissions
> 
> > Thanks for any help!!  
> > Charles Brian Q.  
> > self-promotion: [www.seebq.com](http://www.seebq.com)  
> > highgroove studios: [www.highgroove.com](http://www.highgroove.com)  
> > slingshot hosting: [www.slingshothosting.com](http://www.slingshothosting.com)
> 
> >

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

> **[太阳集团0638开头的网址✅【欢迎下载】](http://www.rubynoob.com)**
>
> 太阳集团0638开头的网址是一家创办历史悠久并且具有非常高的知名度的在线网娱乐平台为大家提供一个良好的彩票交流平台。
