Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When you set up a Linux server with Ruby on Rails on it, and you're not using RVM, is the best practice to sudo gem install [gem] or gem install [gem]. I'm using the second approach, and storing my gems in a user ~/.gems directory and just having Phusion Passenger + Apache look for gems in that directory under the user directory. Is this frowned upon or OK?

share|improve this question
add comment

1 Answer 1

I can't think of any reason not to do that, unless you want the same set of gems to be available to another user on the box (but then you can get into group ownership). Is there some reason you don't want to use rvm?

share|improve this answer
    
On the server I have no reason to use RVM since I only need to run one version of Ruby. In that case I find that using RVM makes things more complicated and less transparent. –  dan Jun 6 '11 at 0:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.