Hacker News new | ask | show | jobs
by sjtgraham 4731 days ago
PSA: Do not use system Ruby - http://robots.thoughtbot.com/post/54109839209/psa-do-not-use...
2 comments

Correct.

Don't use rvm or rbenv on your production Linux boxes. Use packaged Ruby there.

Er, why not? rvm was originally made for production use!

I've used rvm in production for major sites for years with no problems whatsoever, in fact I believe it is best practise. Do you have any reasons for your preference for packaged ruby?

Best practice says production boxes shouldn't have compilers installed.
Install compilers on one machine, build Ruby, package it up as a deb/rpm/whatever, distribute to other machines.
Yep, that's the idea.
Sounds like an awful lot of work for no good reason I can think of.

You'll need a compiler, anyway, once you start trying to use any number of libraries requiring compiled C extensions.

"No compilers on production!" might be true elsewhere but I can't see any reason it applies for ruby deployments.

I'll give this a read, thanks for sharing.