rvm install needs sudo

This commit is contained in:
Devin Howard 2017-01-18 13:16:33 -05:00
parent 9223295320
commit c57015cb15

View file

@ -40,8 +40,15 @@
rvm user gemsets rvm user gemsets
git clone https://github.com/metamaps/metamaps \ git clone https://github.com/metamaps/metamaps \
--branch instance/mycoolinstance --branch instance/mycoolinstance
rvm install $(cat metamaps/.ruby-version) #ensure ruby is installed cat metamaps/.ruby-version
cd metamaps
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 gem install bundler
RAILS_ENV=production bundle install RAILS_ENV=production bundle install