-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathVagrantfile
More file actions
31 lines (25 loc) · 820 Bytes
/
Vagrantfile
File metadata and controls
31 lines (25 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
# Use the just_chew base box
config.vm.box = 'gmcgibbon/just_chew'
# Forward host SSH agent
config.ssh.forward_agent = true
# Forward the Rails server default port to the host
config.vm.network :forwarded_port, guest: 3000, host: 3000
config.vm.network :forwarded_port, guest: 5433, host: 5433
# Configurate the virtual machine to use 2GB of RAM
config.vm.provider :virtualbox do |vb|
vb.name = 'just-chew'
vb.customize ['modifyvm', :id, '--memory', '2048']
end
config.vm.provision 'setup', type: :shell do |setup|
setup.privileged = false
setup.inline = <<-SCRIPT
cd /vagrant
bundle install
bundle exec rake db:create db:migrate db:test:prepare
rbenv rehash
SCRIPT
end
end