Skip to content

Commit

Permalink
Update configure-cloud9-1.1.2.sh
Browse files Browse the repository at this point in the history
reload RVM after installing desired version and before installing gems; switch to rvm 2.2.2 at end and add this to .profile
  • Loading branch information
armandofox committed Oct 23, 2015
1 parent c3873bf commit 113b216
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions vm-setup/configure-cloud9-1.1.2.sh
@@ -1,14 +1,16 @@
# Please pipe this script to a "bash --login" shell

RUBY=2.2.2
set +v

# install heroku
sudo apt-get install heroku-toolbelt

# install the correct version of ruby
echo yes | rvm remove all
rvm install ruby-2.2.2
rvm use ruby-2.2.2
rvm install $RUBY
# reload rvm so it can modify environment of running shell script
. /usr/local/rvm/scripts/rvm
rvm use $RUBY

/bin/bash <<EOF
# install gems. Do not modify this list directly -- see Gemfile
Expand Down Expand Up @@ -124,3 +126,6 @@ gem install --no-rdoc --no-ri websocket-driver:0.6.2
gem install --no-rdoc --no-ri websocket-extensions:0.1.2
gem install --no-rdoc --no-ri xpath:2.0.0
EOF
# finally, switch command line env to the rvm where we just installed gems
echo rvm use $RUBY >> $HOME/.profile
rvm use $RUBY

0 comments on commit 113b216

Please sign in to comment.