aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Vagrantfile2
-rw-r--r--vagrant/bootstrap.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 2dfe550..ce50c39 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -3,7 +3,7 @@
# :mode=ruby:
Vagrant.configure("2") do |config|
- config.vm.box = "bento/freebsd-10.3"
+ config.vm.box = "bento/freebsd-10.4"
config.vm.guest = :freebsd
config.vm.network :forwarded_port, host: 3000, guest: 3000
config.vm.provision :shell, :path => "vagrant/bootstrap.sh"
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index 2d2dc3d..22e8f3c 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -1,8 +1,10 @@
#!/bin/sh
pkg upgrade -y -q -f
-pkg install -y -q ruby rubygem-bundler postgresql93-server postgresql93-client git node sqlite3 imagemagick-nox11
+pkg install -y -q ruby rbenv ruby-build postgresql96-server postgresql96-client git node sqlite3 imagemagick-nox11
echo 'postgresql_enable="YES"' >> /etc/rc.conf
+echo 'eval "$(rbenv init -)"' >> /home/vagrant/.bash_profile
+chsh -s /usr/local/bin/bash vagrant
service postgresql initdb
service -R