obviously.  but deploy:update_code is a sub-task of deploy, so if it
doesn't work, neither will deploy

I don't mean to be rude, but it's pretty much safe to assume that all
users of capistrano would have tried deploy:setup and then deploy, so
perhaps you're trying to help, but I wouldn't have spent hours trying
to figure this out if that were the solution.  it's in every
introductory document.





On Dec 13, 6:05 pm, Donovan Bray <donno...@gmail.com> wrote:
> You should do 'cap deploy:setup' once, then 'cap deploy'
>
> You shouldn't need to call 'deploy:update_code' by itself
>
> On Dec 13, 2010, at 3:54 AM, horseshoe7 <ocon...@gmail.com> wrote:
>
> > Hi,
>
> > In another post I commented on how i find it strange that the deploy
> > task has no switch to ignore "File/Directory already exists" and just
> > overwrite what's already there.
>
> > Now, I find it even more crazy that I do the following:
>
> > cap deploy:setup  (# which will create the releases folder, shared,
> > etc. on the server.  This works)
>
> > cap deploy:update_code
>
> > and it fails because it says:
>
> > ** [myserver.com :: err] fatal: could not create work tree dir '/
> > kunden/264063_10115/smf-services/appbaukasten/test/releases/
> > 20101213114233'.: File exists
>
> > But it was this SAME script that created that folder!!  So there's no
> > way for this task to ever complete successfully.
>
> > I'm using :deploy_via, :copy
>
> > and using Ruby 1.8.7 and capistrano 2.5.2
>
> > Can someone help me as to how I can make my deploy scripts take a --
> > force switch, to make it just overwrite something that already exists
> > on the server?  I can't tell you how many hours I've spent trying to
> > solve this problem and it's highly frustrating that people talk about
> > Capistrano and what it can do for you and yet I'm stuck on the
> > simplest case.
>
> > --
> > * You received this message because you are subscribed to the Google Groups 
> > "Capistrano" group.
> > * To post to this group, send email to capistrano@googlegroups.com
> > * To unsubscribe from this group, send email to 
> > capistrano+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/capistrano?hl=en

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to capistrano@googlegroups.com
* To unsubscribe from this group, send email to 
capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to