Skip to content

Instantly share code, notes, and snippets.

@bunnywong
Last active October 20, 2015 11:41
Show Gist options
  • Save bunnywong/a966c91e5333dace123c to your computer and use it in GitHub Desktop.
Save bunnywong/a966c91e5333dace123c to your computer and use it in GitHub Desktop.
Vagrant example
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "scotch/box"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.hostname = "My Vagrant"
# config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
# Share drupal folder to the guest VM.
config.vm.synced_folder ".", "/var/www", type:"nfs" #owner: "root", group: "root", create: true
# Optional NFS. Make sure to remove other synced_folder line too
#config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
# Virtualbox specific control.
config.vm.provider :virtualbox do |vb|
# Change the instance memory.
vb.customize ["modifyvm", :id, "--cpus", "4"]
vb.customize ["modifyvm", :id, "--memory", "4096"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment