Skt,
Please expand a little on the second idea, you want to have tasks that you
share between applications?

- Lee

2009/4/27 skt <[email protected]>

>
> Lee - I have opened a ticket (#80) per your suggestion for the first
> issue.
>
> I want to ask the community about the second question I raised.
> Particularly about how to create a separate file for deploying/
> updating shared part of the application. How would you invoke the
> tasks specified in a separate file e.g. deploy_shared.rb?
>
> Thanks for any thoughts/pointers.
>
> -S
>
> On Apr 27, 3:58 am, Peter Booth <[email protected]> wrote:
> > When I had a similar issue (project/public contained large media files
> > that changed less often than the rails app) I defined a second "dummy
> > project" that just contained the shares media files. A deploy of the
> > containing prieject would include creating a stmlunk to the media
> > project. It all worked fine.
> >
> > Sent from my iPhone
> >
> > On Apr 27, 2009, at 1:56 AM, skt <[email protected]> wrote:
> >
> >
> >
> > > Folks,
> >
> > > I searched around this group and googled around but didn't find a
> > > clear answer to this question. Hopefully this group can point me in
> > > the right direction.
> >
> > > I have the following structure in my repository
> >
> > > <base dir>/Trunk/<typical RoR folders>
> > > <base dir>/Trunk/public   <-- This is svn:external pointing to <base
> > > dir>/shared/public
> > > <base dir>/Trunk/vendor/rails   <-- This is svn: external pointing to
> > > <base dir>/shared/vendor/rails
> >
> > > Couple questions -
> >
> > > 1. When I do a cap deploy I get an error that says
> >
> > >    [www.mydomain.com] executing command
> > > ** [www.mydomain.com:: err] svn: '.' is not a working copy
> > > ** [www.mydomain.com:: err] svn: Can't open file '.svn/entries': No
> > > such file or directory
> >
> > > When I take the svn checkout command that gets generated and add "--
> > > ignore-externals" and run that it works fine without the error above.
> > > It sounds like I need to add "--ignore-externals" to the svn checkout
> > > command that gets generated.
> >
> > > I dug into the capistrano gem and found that in subversion.rb the
> > > "authentication" function returns the svn command string. I added "--
> > > ignore-externals" there conditioned on a variable in my deploy.rb.
> > > However, it turns out that "svn info" command which runs before "svn
> > > checkout" runs (to determine the latest version) also uses the same
> > > "authentication" function to generate the command string and the "--
> > > ignore-externals" that gets added to the "svn info" command is not a
> > > valid option and it barfs.
> >
> > > So the question here is how do I do a cap deploy of my codebase where
> > > there are directories that point to shared directories using
> > > svn:external?
> >
> > > 2. What is the best practice in terms of adding tasks for deploying
> > > your shared code? In my case I will be making changes to files under
> > > shared/public/javascripts directory that is linked from <base dir>/
> > > Trunk/public/javascripts. Do I create separate tasks within the same
> > > deploy.rb? Should I create a separate deploy_shared.rb that contains
> > > tasks only for shared deployment? If so (and this is probably a simple
> > > question but isn't obvious to me), how will deploy_shared.rb get
> > > recognized by the capistrano infrastructure and how will one call
> > > tasks listed within deploy_shared.rb? I created a deploy_shared.rb but
> > > can't find a way to call tasks in that file from the cap command.
> >
> > > Thanks,
> > > -S
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to