Using bundle --binstubs is also a really good way to use project specific 
files.

Here's an article expaining how to set it up with rvm:
http://robots.thoughtbot.com/use-bundlers-binstubs

Once this is done, you can run the executable from the project dir like:
$ ./bin/capify  # (for v2 capistrano)
$ ./bin/cap install # (for v3 capistrano)

All other executables (rails, rake, etc) will also be stored in the bin 
dir, so instead of running
$ bundle exec <some command>

you can run

$ ./bin/<some command>

Regards,
Graham

On Thursday, 27 March 2014 00:13:15 UTC+11, Jonathan Rochkind wrote:
>
> Running `bundle exec cap` instead of just `cap` will make sure the cap 
> executable and all other dependencies used are as specified in your 
> Gemfile/Gemfile.lock. 
>
> On 3/26/14 7:09 AM, Björn Etzold wrote: 
> > I did that, but when i use then "cap" it is still using version 3.1 or 
> > do i have to use then an other bash? 
> > 
> > On Wednesday, March 26, 2014 12:01:08 PM UTC+1, Lee Hambley wrote: 
> > 
> >     Add a Gemfile <http://bundler.io/>to each project!. 
> > 
> >     Lee Hambley 
> >     -- 
> >     http://lee.hambley.name/ 
> >     +49 (0) 170 298 5667 
> > 
> > 
> >     On 26 March 2014 11:56, Björn Etzold <[email protected] 
> >     <javascript:>> wrote: 
> > 
> >         Hi, 
> > 
> >         i'm pretty new with capistrano and ruby. 
> > 
> >         I use capistrano to deploy my projects. No i have the situation, 
> >         that i'm using capistrano 3.1 and everything works fine. But i 
> >         need to use for an other project capistrano 2.15. How can i do 
> that? 
> > 
> >         Why do i want to do that? Because i use the gem magentify and 
> >         this one is not compatible to 3.1 
> > 
> >         Thanks for the help 
> > 
> >         I work with Mac OS x. 
> > 
> >         -- 
> >         You received this message because you are subscribed to the 
> >         Google Groups "Capistrano" group. 
> >         To unsubscribe from this group and stop receiving emails from 
> >         it, send an email to [email protected]<javascript:>. 
> >         To view this discussion on the web, visit 
> >         
> https://groups.google.com/d/msgid/capistrano/302dce78-9657-4b77-937b-e1de8711b1da%40googlegroups.com
>  
> >         <
> https://groups.google.com/d/msgid/capistrano/302dce78-9657-4b77-937b-e1de8711b1da%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  
>
> >         For more options, visit https://groups.google.com/d/optout 
> >         <https://groups.google.com/d/optout>. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Capistrano" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to [email protected] <javascript:> 
> > <mailto:[email protected] <javascript:>>. 
> > To view this discussion on the web, visit 
> > 
> https://groups.google.com/d/msgid/capistrano/ca6f0db8-abfd-4b3d-a846-a66e3f5160e5%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/capistrano/ca6f0db8-abfd-4b3d-a846-a66e3f5160e5%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/38e56313-b74a-4c2c-8b0d-9c345aecc7c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to