Skip to content

Commit 3a061db

Browse files
committed
Vagrant optimizations
1 parent 04f5859 commit 3a061db

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@
2222
/data/cntf
2323
/data/resources
2424
.cntf-space-hash
25+
.vagrant
26+
.tmp

Vagrantfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
# Windows hosts need: vagrant plugin install vagrant-winnfsd
2+
13
VAGRANTFILE_API_VERSION = "2"
24

35
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
46
config.vm.box = "precise64"
57
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
68
config.vm.network :forwarded_port, guest: 4567, host: 4567
9+
config.vm.network "private_network", type: "dhcp"
10+
config.vm.synced_folder '.', '/vagrant', nfs: true
711

812
config.vm.provider :virtualbox do |vb|
9-
vb.customize ["modifyvm", :id, "--memory", "512"]
13+
vb.customize ["modifyvm", :id, "--memory", "1024"]
1014
vb.customize ["modifyvm", :id, "--cpus", "2"]
1115
end
1216

config.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
end
132132

133133
configure :development do
134-
activate :livereload
134+
activate :livereload, :no_swf => true
135135
set :is_live, false
136136
set :site_url, "http://dev.komodoide.com:4567"
137137
end

vagrant-start.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
exec('vagrant ssh -c "cd /vagrant && middleman server"')
1+
exec('vagrant ssh -c "cd /vagrant && middleman server --force-polling --latency=2"')

0 commit comments

Comments
 (0)