jrafanie has quit [Remote host closed the connection]
kfpratt has joined #bundler
huoxito_ has joined #bundler
jrafanie has joined #bundler
huoxito has quit [Ping timeout: 264 seconds]
hotpancakes has joined #bundler
hotpancakes has quit [Ping timeout: 244 seconds]
axl__ has joined #bundler
hackeron_ has quit [Remote host closed the connection]
valarissa has joined #bundler
chouhoulis has joined #bundler
hotpancakes has joined #bundler
jrafanie has quit [Quit: jrafanie]
hotpancakes has quit [Ping timeout: 256 seconds]
hotpancakes has joined #bundler
hotpancakes has quit [Remote host closed the connection]
hotpanca_ has joined #bundler
aweis has joined #bundler
<aweis>
hello, I am trying to deploy bundler to a large rails deployment with multiple machines already in production
<aweis>
they use the system gems for all gems in the system, and I have gotten everything to work fine for scripts that load the rails environment, as there is a .bundle/config that loads the gems from vendor/bundle
<aweis>
however, there are hundreds of other scripts on the system, that do not load the rails environment. How do I get those scripts to load gems from vendor/bundle?
<aweis>
I have tried bundle installing the Gemfile into the system gems directory, but this does not work for gems from :git => ... (as is pointed out in the documentation) and I was wondering what the best practices are for these situations
<jhass>
aweis: either run them through bundle exec or add require "bundler/setup" as the first require to them
<aweis>
jhass: this requires the need to modify multiple scripts? I have found a way around changing all the scripts by adding a ruby shim, where when calling ruby, I am actually already requiring bundler setup exec /usr/bin/ruby1.9.3 -r 'rubygems' -r 'bundler/setup'
<jhass>
-r 'rubygems' is implicitly done by ruby for you since 1.9 (which is EOL'd btw), but yeah, if neither editing the scripts nor all invocations is an option that's probably your way to go
hotpanca_ has quit [Remote host closed the connection]
axl__ has quit [Quit: axl__]
cha1tanya has joined #bundler
_ixti_ has joined #bundler
ixti has quit [Ping timeout: 246 seconds]
cha1tanya has quit [Ping timeout: 252 seconds]
cha1tanya has joined #bundler
<aweis>
jhass: thanks for confirming the approach as valid. It is very difficult for me to get a good idea on how to retrofit old systems into using bundler, and its useful to have someone to talk over the problems with.
<jhass>
I'd still prefer one of the other two approaches though
<jhass>
it is a workaround
<indirect>
aweis: jhass: `bundle exec` is effectively identical to `ruby -rbundler/setup`
<jhass>
yes, but I think it transports intent a bit better
<indirect>
aweis: I strongly recommend upgrading from Ruby 1.9.3, since it will stop getting security patches soon (already has stopped, maybe)
<jhass>
also we're talking about shimming ruby to bundle exec here
<indirect>
you could also set the shell environment variable `RUBYOPT=-rbundler/setup`
<indirect>
which effectively forces all ruby processes to be bundle-exec'ed
<jhass>
ruby 1.9.3 will no longer receive any official security patches, Ruby 2.0 will cease to receive them in late February 2016
<indirect>
aweis: you can install the bundle into system gems, but you still need to use bundler, either via `bundle exec` or via `require 'bundler/setup'` or with `RUBYOPT=-rbundler/setup`
<indirect>
there are many more problems besides just git gems that require it
axl__ has joined #bundler
<aweis>
indirect: my major issue is that the system gem directory is not writable, so the :git gems wont be stored there. I believe the :git gems would then get placed in the .gem directory, but the bundler docs highly suggest to avoid system gems. What other problems are your referring to?
<indirect>
aweis: if the system gem directory is not writable, then Bundler cannot use it
<indirect>
if you have any git gems at all, write access is required
jds has joined #bundler
axl__ is now known as axl_
cha1tanya has quit [Ping timeout: 245 seconds]
hotpancakes has joined #bundler
aweis has quit [Ping timeout: 240 seconds]
aweis has joined #bundler
Cidan is now known as zz_Cidan
aweis has quit [Ping timeout: 276 seconds]
jrafanie_ has joined #bundler
jrafanie_ is now known as jrafanie
aweis has joined #bundler
aweis has quit [Ping timeout: 272 seconds]
x1337807x has joined #bundler
huoxito_ has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
ixti has joined #bundler
_ixti_ has quit [Ping timeout: 276 seconds]
djbkd has joined #bundler
aweis has joined #bundler
aweis has quit [Ping timeout: 244 seconds]
hotpancakes has quit [Remote host closed the connection]
hotpanca_ has joined #bundler
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
houhoulis has joined #bundler
hotpanca_ has quit [Remote host closed the connection]