x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #bundler
robbyoconnor has quit [Client Quit]
charypar has joined #bundler
charypar has quit [Ping timeout: 240 seconds]
x1337807x has joined #bundler
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charypar has joined #bundler
charypar has quit [Ping timeout: 250 seconds]
woollyams has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #bundler
thumpba_ has joined #bundler
thumpba_ has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #bundler
charypar has joined #bundler
charypar has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #bundler
ixti has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Remote host closed the connection]
woollyams has joined #bundler
havenwood has quit [Remote host closed the connection]
thumpba_ has joined #bundler
ddd has quit [Read error: Operation timed out]
ddd has joined #bundler
robbyoconnor has joined #bundler
thumpba_ has quit [Remote host closed the connection]
thumpba_ has joined #bundler
thumpba_ has quit [Ping timeout: 252 seconds]
havenwood has joined #bundler
charypar has joined #bundler
havenwood has quit [Ping timeout: 240 seconds]
charypar has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #bundler
thumpba_ has joined #bundler
woollyams has quit [Read error: Connection reset by peer]
mdub has joined #bundler
robbyoconnor has quit [Ping timeout: 252 seconds]
havenwood has joined #bundler
havenwood has quit [Ping timeout: 252 seconds]
<bibix82>
Hi guys, I have a question about git gems. Is it possible to install them in the system location? I'm working on a ruby on rails 4.1.0 application and I need to add a gem through git
<Radar>
bibix82: I don't understand the question.
<Radar>
"in the system location?" where?
thumpba_ has quit [Remote host closed the connection]
thumpba_ has joined #bundler
thumpba_ has quit [Read error: Connection reset by peer]
thumpba_ has joined #bundler
<bibix82>
In /usr/local/rvm/gems/ruby-1.9.3-p484/gems
<bibix82>
Where other gems are installed
<bibix82>
But if you install git gems then you find them in /usr/local/rvm/gems/ruby-1.9.3-p484/bundler/gems
<bibix82>
And passenger returns an error:
<bibix82>
For activerecord-sqlserver-adapter => git://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git (at rails-4-1-0) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
<bibix82>
In development environment I'd like to share gems among applications, I don't wanto to put them in vendor/bundle or vendor/cache
charypar has joined #bundler
charypar has quit [Ping timeout: 252 seconds]
thumpba_ has quit [Remote host closed the connection]
thumpba_ has joined #bundler
thumpba_ has quit [Remote host closed the connection]
x1337807x has joined #bundler
havenwood has joined #bundler
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
havenwood has quit [Ping timeout: 255 seconds]
_whitelogger has joined #bundler
_whitelogger_ has joined #bundler
_whitelogger_ has quit [Excess Flood]
_whitelogger_ has joined #bundler
mauro1254 has joined #bundler
<mauro1254>
Hi guys, anyone here?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Radar_ has joined #bundler
heroux has quit [*.net *.split]
Radar has quit [*.net *.split]
heroux_ is now known as heroux
tmoore has quit [*.net *.split]
ohcibi has quit [*.net *.split]
tmoore_ is now known as tmoore
<mauro1254>
Hi guys, anyone here?
robbyoconnor has joined #bundler
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samphippen has joined #bundler
retro|cz has quit [Ping timeout: 252 seconds]
<bibix82>
Hi guys, anyone here?
ixti has joined #bundler
ixti has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #bundler
ixti has joined #bundler
robbyoconnor has quit [Ping timeout: 252 seconds]
ixti has quit [Ping timeout: 240 seconds]
CraHan has joined #bundler
<mauro1254>
Hi guys, anyone here?
jvrmaia has joined #bundler
thedeeno has joined #bundler
<indirect>
mauro1254: if you have a question, ask it. you've just doubled the amount of time you'll need to wait for an answer :)
<indirect>
bibix82: you need to install your git gems as the same user you will use them as
<indirect>
or you need to set GEM_HOME to the same value for both, and make sure both have read/write permissions
<mauro1254>
I'm working on a rails 4.1 application and I have a problem with a gem coming directly from git.
<indirect>
mauro1254: that's not a question :)
<indirect>
bibix82: the /gems directory is exclusively for non-git gems. if you need to install gems there, build a .gem file from the git repo and install it.
<mauro1254>
On my machine git gems are installed under /usr/local/rvm/gems/ruby-1.9.3-p484/bundler/gems, packaged one under /usr/local/rvm/gems/ruby-1.9.3-p484/gems. Is there a way to force bundler to put gems in the expected place or any missing path to set?
<mauro1254>
The problem is that passenger cannot find the gem installed through git and returns the following error:
<mauro1254>
git://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git (at rails-4-1-0) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
<mauro1254>
I read the bundler doc and I found that I can install gems in vendor/cache
<mauro1254>
(bundle install --path vendor/cache)
<mauro1254>
Is there a way to share gems among applications, I mean install them as system gems. I'm working on a dozen of apps and want to share gems in development environment
<mauro1254>
On the production server I use the --deployment flag, this means that every app has its own gems installed.
ixti has joined #bundler
jvrmaia has quit []
<indirect>
mauro1254: wait you're the same guy as bibix82? I already answered that question
<indirect>
gems ARE shared between users
<indirect>
but your Passenger process doesn't know where to look
<indirect>
(sorry, I have no idea if you are in fact a guy. same person)
<indirect>
it is completely trivial to share gems between applications
<indirect>
it will happen automatically if you have set GEM_HOME
<indirect>
you are using passenger, which has no GEM_HOME set
<mauro1254>
indirect: yes, I'm the same guy (two different accounts home / work)
<mauro1254>
When I worked on my local machine I didn't have such problems, but now I'm using vagrant ...
<mauro1254>
An ubuntu 12.04 machine + rvm, apache, passenger
<mauro1254>
local machine is a MacBook Pro
<mauro1254>
Passenger is able to load packaged gems, but not git ones ... it is strange ...
<indirect>
mauro1254: it's not strange, it's expected. I just explained the problem: you are installing as one user, and running apache/passenger as a different user. the passenger user does not have GEM_HOME set, and so Bundler cannot find the git gems
<mauro1254>
Ok, but I also installed packaged gems with the same user
<mauro1254>
Packaged gems are found, git ones not ... why?
<indirect>
mauro1254: what do you mean "the same user"?
<indirect>
because GEM_HOME is not set for Passenger
<indirect>
as I have now said three times.
<mauro1254>
I have a rails app and in the main dir I run bundle install
<indirect>
I also linked to a blog post about how to set GEM_HOME for passenger
<mauro1254>
Yes
<mauro1254>
I read it
<mauro1254>
Just a moment please
<mauro1254>
I'll switch back to shared gems and check the error page
<mauro1254>
The page is shown by passenger (I guess)
<indirect>
that's the error page that says the git gem is not installed?
<mauro1254>
User and groups: nobody, nobody
<mauro1254>
yes
<indirect>
what makes you think that nobody/nobody has write access to /usr/local/rvm/gems/ruby-1.9.3-p484/bundler/gems
<mauro1254>
It doesn't complain about other gems, if I remove the one from git, then it works
<mauro1254>
bundler/gems or gems
<mauro1254>
+ their content
<mauro1254>
have same user / group
<mauro1254>
root:rvm
<mauro1254>
+
<indirect>
mauro1254: lol you ran bundle install as root?
<mauro1254>
everyone can read
<indirect>
no
<indirect>
that won't work
<indirect>
git gems require write access
<indirect>
git blows up if it can't write to the filesystem
<mauro1254>
no, I didn't run as root
<indirect>
sounds like your setup is incompatible with git gems
<mauro1254>
I performed a rvm system wide setup
<indirect>
if you didn't run it as root, how is bundler/gems owned by root?
<indirect>
yeah, that is officially not supported
<indirect>
you cannot install git gems as root and then read and write them as nobody
<indirect>
(I don't know why git requires write access, but I can't do anything about it, sorry :\)
<mauro1254>
I'm confused ...
<indirect>
what are you confused about?
<indirect>
systemwide rvm setup means all your gems are owned by root
<indirect>
you run passenger as the nobody user
<mauro1254>
I performed a system wide setup + added my user to rvm group in order to be able to use rvm
<indirect>
the nobody user cannot read and write files owned by root
<mauro1254>
ok
<indirect>
I mean, maybe you can add write permissions to the rvm group
<indirect>
if nobody is in the rvm group
<mauro1254>
yes
<indirect>
but I think nobody is a special user on unix systems that doesn't have write access?
<mauro1254>
but probably this is not a good solution
<indirect>
not sure
<indirect>
right
<indirect>
you should probably not use git gems
<mauro1254>
But I'm forced to
<indirect>
lol no
<indirect>
you can build a gem and use that
<indirect>
or you can bundle package --all
<indirect>
or you can stop using passenger
<indirect>
giving apache the ability to write to your filesystem is probably a bad idea
<mauro1254>
Does bundle package --all put gems in my vendor dir?
<indirect>
but you could also do that
<indirect>
mauro1254: yes
<indirect>
including git gems
<mauro1254>
Yes, this work ...
<indirect>
yup
<indirect>
there are tons of things you can do
<mauro1254>
Yes, but when I developed on my local machine (OSX), I din't have such problem
<mauro1254>
...
<mauro1254>
strange
<indirect>
but you can't use git gems without giving write permissions to your passenger user
<indirect>
sounds like you didn't use passenger on your mac
<indirect>
you could switch to unicorn or puma on your server
<indirect>
and run it as a different user than nobody
<indirect>
good luck
<mauro1254>
On my server I use
<mauro1254>
bundle install --deployment
<mauro1254>
Every app has its own gems
<indirect>
mauro1254: sounds good
<mauro1254>
Yes, but you know, in development env I always used shared gems (git + non git) without problems ...
<indirect>
mauro1254: yes. that's because you had read AND write access to your git gems.
<indirect>
as I have said several times now.
<indirect>
:P
<mauro1254>
Yes ... I got it ... But I'd like to understand why ... I didn't set permissions when I worked on my local machine
<mauro1254>
:)
<mauro1254>
Btw, it doesn't work even giving 777 permissions
<mauro1254>
(just a test ...)
<mauro1254>
Thanks for your help
mauro1254 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0/20140421221237]]
chouhoulis has joined #bundler
chouhoul_ has joined #bundler
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #bundler
charypar has quit [Ping timeout: 246 seconds]
havenwood has joined #bundler
aspiers has quit [Quit: WeeChat 0.4.2]
robbyoconnor has joined #bundler
robbyoconnor has quit [Read error: Connection reset by peer]
shaileshg has quit [Quit: Connection closed for inactivity]
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xjstn has joined #bundler
<xjstn>
hiii. how do I reset a gem if I edited what I found with bundler show gem_name?
x1337807x has joined #bundler
aspiers has joined #bundler
<aspiers>
I just ran bundle install non-root, and it took advantage of my sudoers entry to start writing a whole load of crap in /usr/lib64/ruby :-( wtf
<aspiers>
It would have been nice if it asked my permission first at least
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
<xjstn>
i accidentally deleted a bundled gem and can't get it back :/
<xjstn>
answer is gem pristine gem_name
xjstn has quit [Quit: Leaving...]
axl_ has joined #bundler
axl_ has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
axl__ has joined #bundler
axl_ has joined #bundler
axl_ has quit [Client Quit]
axl_ has joined #bundler
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl__ has quit [Quit: axl__]
axl_ has quit [Quit: axl_]
axl_ has joined #bundler
axl__ has joined #bundler
axl__ has quit [Remote host closed the connection]
axl_ has quit [Client Quit]
axl_ has joined #bundler
x1337807x has joined #bundler
charypar has joined #bundler
charypar has quit [Remote host closed the connection]
cmmagid has quit [Quit: cmmagid]
charypar has joined #bundler
thedeeno has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
axl_ has joined #bundler
axl_ has quit [Client Quit]
axl_ has joined #bundler
_whitelogger has joined #bundler
samphippen has joined #bundler
robbyoconnor has joined #bundler
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
Radar_ is now known as Radra
Radra is now known as Radar
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba_ has joined #bundler
thumpba_ has quit [Remote host closed the connection]