- # port forward for webrick on 3000
- config.vm.network :forwarded_port, guest: 3000, host: 3000
+ # configure virtualbox provider
+ config.vm.provider "virtualbox" do |vb, override|
+ override.vm.synced_folder ".", "/srv/openstreetmap-website"
+ vb.customize ["modifyvm", :id, "--memory", "4096"]
+ vb.customize ["modifyvm", :id, "--cpus", "2"]
+ vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]
+ end
+
+ # Use sshfs sharing if available, otherwise NFS sharing
+ sharing_type = Vagrant.has_plugin?("vagrant-sshfs") ? "sshfs" : "nfs"
+
+ # configure lxc provider
+ config.vm.provider "lxc" do |_, override|
+ override.vm.synced_folder ".", "/srv/openstreetmap-website", :type => sharing_type
+ end