]> cat aescling's git repositories - mastodon.git/commitdiff
fix(*): ruby version was updated in .ruby-version but not Vagrant. Make them match...
authorGavin Mogan <github@gavinmogan.com>
Tue, 11 Apr 2017 13:06:07 +0000 (06:06 -0700)
committerEugen <eugen@zeonfederated.com>
Tue, 11 Apr 2017 13:06:07 +0000 (15:06 +0200)
Vagrantfile

index cd7f74473a8a1a3b161ada23a76e861cf07d604f..90f60464074b498198704d2c99e6160596443a15 100644 (file)
@@ -46,12 +46,12 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
 export PATH="$HOME/.rbenv/bin::$PATH"
 eval "$(rbenv init -)"
 
-echo "Compiling Ruby 2.3.1: warning, this takes a while!!!"
-rbenv install 2.3.1
-rbenv global 2.3.1
-
 cd /vagrant
 
+echo "Compiling Ruby $(cat .ruby-version): warning, this takes a while!!!"
+rbenv install $(cat .ruby-version)
+rbenv global $(cat .ruby-version)
+
 # Configure database
 sudo -u postgres createuser -U postgres vagrant -s
 sudo -u postgres createdb -U postgres mastodon_development