|
|
|
|
|
by L_Rahman
4400 days ago
|
|
One of the reasons I've come to do most of my early stage prototyping in node is that managing npm packages has thus proven much easier than finagling with pip or gem. Ruby installs are especially difficult to manage. Despite the numerous tutorials out there, I still don't know what, if there even is one, the canonically best way to install ruby and necessary gems is. RVM? Install through Brew? Add path to ~/.bashrc? I say this as someone who likes using command line so much that I've written Caskfiles to automate my deployment to fresh OS X Machines. |
|
Wait, what? On production, install the exact ruby you need from your favorite package manager. On your dev box, install any rubies you need through rbenv [1]. Put all your gem dependencies into a Gemfile [2]. On either end, bundle install [--deployment] and call it a day.
[1]: https://github.com/sstephenson/rbenv
[2]: http://bundler.io/v1.6/gemfile.html