jds has quit [Quit: Connection closed for inactivity]
kfpratt has joined #bundler
houhoulis has quit [Remote host closed the connection]
rgb-one has joined #bundler
<rgb-one>
Is there anything additional required when installing bundler on mac?
kfpratt has quit [Remote host closed the connection]
huoxito has joined #bundler
huoxito has quit [Remote host closed the connection]
huoxito has joined #bundler
<jhass>
no, why do you ask?
kfpratt has joined #bundler
rgb-one has quit [Ping timeout: 256 seconds]
rgb-one has joined #bundler
Pupeno has joined #bundler
Fooster has quit [Ping timeout: 265 seconds]
Pupeno has quit [Quit: Leaving...]
Fooster has joined #bundler
dstarh has joined #bundler
<dstarh>
Is there a way to specify an environment variable for a specific gem? We have a gem that needs java1.8 to install. The system java is 1.7 and needs to stay as such but when capistrano runs bundle install on deploy, we need to ensure that JAVA_HOME=/path/to/1.8
<dstarh>
when running in apache/passenger we set an env var there so our rails app does see the proper version, just having trouble with the deployment
djbkd has joined #bundler
<jhass>
the Gemfile is ruby code and you can do whatever in it, in theory ;)
ryba has joined #bundler
iamjarvo has joined #bundler
<dstarh>
jhass hrm hadn't thought of that so I should be able to just so something like ENV[:JAVA_HOME]="/path/to"?
<jhass>
not a symbol but a string as key, but yeah
<dstarh>
now to figure out how to make that path environment specific
<jhass>
actually, can't you let capistrano set it?
<dstarh>
that was my initial thought but I was asked to determine if I could set it directly in the gemfile
<indirect>
dstarh: set the env var for the user Capistrano runs as, or maybe have Capistrano set it before running commands
<indirect>
the gemfile is a bad place for code that only applies to deploys
<dstarh>
@indirect I only want it set in the context of the bundle install so perhaps cap is the place to do it