![]() | Deploying from machine which uses RVM |
|
19 Jul 2012, 17:31
Chris Tembreull (1 post) |
My apps are developed on a mac which uses RVM to provide its ruby/rails environment. The virtual server I’ve set up as per the book does not use RVM; it uses the system-level ruby. When attempting cap deploy:cold
I get the following errors:
*** [err :: localhost] rake aborted!
*** [err :: localhost] Could not find i18n-0.6.0 in any of the sources
I suspect this is because the virtual server does not use RVM, and so capistrano can’t figure out where to put its gems – but outside of that, I’m bloody well stumped. Most of the advice I’ve thus found online seems to presume that I’m also using RVM on the server. Is that the answer? I genuinely hope not. |
|
19 Jul 2012, 21:05
Fabrizio Soppelsa (26 posts) |
Observing the scenario around – RVM is not mandatory in production. Many sysadmins still prefer packaged rubies. You should login in production and `gem install i18n` If you need to adjust paths for Capistrano, you can set the environment variables, as explained here https://rvm.io/integration/capistrano/#environment |
|
22 Jul 2012, 01:40
Tom Copeland (76 posts) |
Also, if you’re using Rails 3, Capistrano will invoke Bundler to install the gems as part of the install. If you’re using Rails 2.3, you can still use Bundler by modifying config/boot.rb: http://gembundler.com/rails23.html If you’d rather not use Bundler, you can add Puppet package resources of the type ‘gem’: |
| You must be logged in to comment |

