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.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>/ 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>/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.rubynoob.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Charles Brian Quinn
2006-Sep-16 13:37 UTC
Re: Problem with deploying using Capistrano from Windows
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 Donaghe
<terry.donaghe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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.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.rubynoob.com
> >
>
--
Charles Brian Quinn
self-promotion: www.seebq.com
highgroove studios: www.highgroove.com
slingshot hosting: www.slingshothosting.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---
Terry Donaghe
2006-Sep-16 14:35 UTC
Re: Problem with deploying using Capistrano from Windows
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 Quinn <cbquinn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > 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 Donaghe <terry.donaghe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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.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.rubynoob.com > > > > > > > > -- > Charles Brian Quinn > self-promotion: www.seebq.com > highgroove studios: www.highgroove.com > slingshot hosting: www.slingshothosting.com > > > >-- Terry (TAD) Donaghe http://www.tadspot.com http://www.rubynoob.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Terry Donaghe
2006-Sep-16 15:06 UTC
Re: Problem with deploying using Capistrano from Windows
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 Donaghe
<terry.donaghe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> 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 Quinn
<cbquinn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> >
> > 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 Donaghe
<terry.donaghe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > 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.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.rubynoob.com
> > > >
> > >
> >
> >
> > --
> > Charles Brian Quinn
> > self-promotion: www.seebq.com
> > highgroove studios: www.highgroove.com
> > slingshot hosting: www.slingshothosting.com
> >
> > > >
> >
>
>
> --
>
> Terry (TAD) Donaghe
> http://www.tadspot.com
> http://www.rubynoob.com
>
--
Terry (TAD) Donaghe
http://www.tadspot.com
http://www.rubynoob.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---