Shrinath,
Just to clarify a little, the blocks which are passed to the server to execute
are evaluated once, and then passed to each connected server, thus there's no
way to do something in the `update_code` task such as `svn checkout
#{this_server[:svn_url]}`.
A similar manifestation of this problem is people trying to put one
configuration file, by name to each server.
We're working on a major rewrite and this is one of the problems that we have
in mind, restructuring the way these things are done, so that the block is run
in the context of the server, per server.
Unfortunately I can't commit to a timeline for that work now; please just watch
this space!
- Lee
On Friday, June 8, 2012 at 9:19 AM, shrinath_m2 wrote:
> Thanks for the straight forward reply, it saved lot of hair pulling time :)
> I'll think of re structuring the things then...
> If you have any suggestions regarding how it can be structured, then let me
> know...
>
> Regards,
> Shrinath M
>
>
> On Friday, June 8, 2012 12:18:16 PM UTC+5:30, Lee Hambley wrote:
> > Shrinath,
> >
> > Sorry that's simply not possible; the core configuration variables are
> > shared between each server, and cannot be changed on a per-host basis.
> >
> > - Lee
> >
> > On Friday, June 8, 2012 at 8:30 AM, shrinath_m2 wrote:
> >
> > > Hi all,
> > >
> > > I have a specific requirement:
> > >
> > > We have 10 machines on which specific codes are deployed.
> > > Codes are in SVN.
> > > Out of those 10, we sometimes want 1 or 2 of the machines to point to a
> > > different SVN repo/path.
> > >
> > > I have all the server IPs in mysql, I fetch them into my recipe using
> > > queries to db, then loop and add them to role :app.
> > >
> > > Now with the above mentioned requirements, I thought of adding SVN repo
> > > URL to the mysql too, so that every IP has the associated SVN URL that
> > > shall be deployed to it.
> > >
> > > Now how do I switch repo dynamically in deployment procedure?
> > > Any suggestions welcome.
> > >
> > > Regards,
> > > Shrinath M
> > >
> > > --
> > > * You received this message because you are subscribed to the Google
> > > Groups "Capistrano" group.
> > > * To post to this group, send email to [email protected]
> > > (mailto:[email protected])
> > > * To unsubscribe from this group, send email to
> > > [email protected]
> > > (mailto:[email protected]) For more options, visit
> > > this group at http://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 [email protected]
> (mailto:[email protected])
> * To unsubscribe from this group, send email to
> [email protected]
> (mailto:[email protected]) For more options, visit this
> group at http://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 [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en