From c57015cb15d4a88704820ef7b4ac60b47dee25ec Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Wed, 18 Jan 2017 13:16:33 -0500 Subject: [PATCH] rvm install needs sudo --- doc/production/first-deploy.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/production/first-deploy.md b/doc/production/first-deploy.md index ac1d7111..0d12b216 100644 --- a/doc/production/first-deploy.md +++ b/doc/production/first-deploy.md @@ -40,8 +40,15 @@ rvm user gemsets git clone https://github.com/metamaps/metamaps \ --branch instance/mycoolinstance - rvm install $(cat metamaps/.ruby-version) #ensure ruby is installed - cd metamaps + cat metamaps/.ruby-version + +The last line tells you what version of ruby you need to install. For example, at the time of writing the version is 2.3.0. As your normal sudo-enabled user, run + + sudo rvm install 2.3.0 + +Now switch back to the metamaps user and continue + + cd /home/metamaps/metamaps gem install bundler RAILS_ENV=production bundle install