rvm and bundler should work fine together. One of our core team (Kir) is
using that setup all the time, and Michal Papis, the RVM maintainer has had
a hand in writing the Gem.

There's the "official"
capistrano-rvm<http://rubygems.org/gems/capistrano-rvm>Gem which we
maintain, and the
rvm1-capistrano3 <http://rubygems.org/gems/rvm1-capistrano3> Gem maintained
by Michal. We know that's a little strange, but Michal has slightly
different goals for the super right integration of RVM with Capistrano (the
big sticking point is encouraging the deploy-time installation of Rubies,
which we think is a bad idea)

You should definitely try both. We had been working with Michal to align
the two Gems a bit better, but I haven't done a good enough job of getting
that to happen yet.

The final thing to say, is that what you are doing should work, there's no
need to switch to the other one. It would help us a lot if you could post
(with as few modifications as possible) your Capfile, deploy.rb, and your
stage files. It might be some load-order dependent stuff.

Lee Hambley
--
http://lee.hambley.name/
+49 (0) 170 298 5667


On 13 January 2014 06:07, Slava Kanaykin <[email protected]> wrote:

> Using: Capistrano + capistrano-bundler + capistrano-rails +capistrano-rvm
> Problem:
> > cap production deploy
> ...
> and when deploy:assets:precompile
>
> ... bundle exec rake assets:precompile
> bash: bundle: command not found
> cap aborted!
>
> we need "rvm use 2.0.0 do bundle exec rake ...." , but there is only
> "bundle exec rake"
>
> Or such combination ( rvm + bundle) is not allowed?
>
> -------------------------------------------
>
> Versions:
>
>    - Ruby 2.0.0
>    - Capistrano 3.0.1, capistrano-bundler (1.1.1), capistrano-rails
>    (1.1.0), capistrano-rvm (0.0.3)
>    - Rake 10.1.1 / Rails 4.0.2 / etc
>
> Platform:
>
>    - Working on Linux 3.8.0-35-generic #50~precise1-Ubuntu SMP Wed Dec 4
>    17:28:45 UTC 2013 i686 i686 i386 GNU/Linux
>    - Deploying to Linux 2.6.32-5-amd64 #1 SMP Mon Sep 23 22:14:43 UTC
>    2013 x86_64 GNU/Linux
>
> Logs:
>
>    -  INFO [8212b6b0] Running /usr/local/rvm/bin/rvm 2.0.0 do bundle
>    --gemfile /home/deploy/projects/op1/releases/20140113042011/Gemfile --path
>    /home/deploy/projects/op1/shared/bundle --deployment --quiet
>    --binstubs /home/deploy/projects/op1/shared/bin --without development
>    test on gotar.ru
>    DEBUG [8212b6b0] Command: cd 
> /home/deploy/projects/op1/releases/20140113042011
>    && /usr/local/rvm/bin/rvm 2.0.0 do bundle --gemfile 
> /home/deploy/projects/op1/releases/20140113042011/Gemfile
>    --path /home/deploy/projects/op1/shared/bundle --deployment --quiet
>    --binstubs /home/deploy/projects/op1/shared/bin --without development
>    test
>     INFO [8212b6b0] Finished in 1.831 seconds with exit status 0
>    (successful).
>    - ...
>    INFO [58eaf64f] Running bundle exec rake assets:precompile on gotar.ru
>    DEBUG [58eaf64f] Command: cd 
> /home/deploy/projects/op1/releases/20140113042011
>    && ( RAILS_ENV=production bundle exec rake assets:precompile )
>    DEBUG [58eaf64f] bash: bundle: command not found
>    -
>
>  --
> 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/c339358d-88fc-4e0d-bf7b-04d63164cf46%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CAN_%2BVLVUpeu7XkMm%2BDdRB_65Bw7X7WhcNfrMXFhY61%2Bjo-6SYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to