Skip to content

Commit f28dc61

Browse files
Elliot Murphynlalonde
authored andcommitted
Restore NFS shares on darwin & 1024MB in Vagrant.
1 parent 79dfccf commit f28dc61

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ When you're ready to start working, boot the VM:
2020
vagrant up
2121
```
2222

23-
On Windows, it will prompt you for your admin password. This is so it can mount your local files inside the VM for an easy workflow.
23+
Vagrant will prompt you for your admin password. This is so it can mount your local files inside the VM for an easy workflow.
2424

2525
(The first time you do this, it will take a while as it downloads the VM image and installs it. Go grab a coffee.)
2626

Vagrantfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Vagrant::Config.run do |config|
1515
# them into the VM.
1616
config.ssh.forward_agent = true
1717

18-
# This setting gives the VM 512MB of MEMORIES instead of the default 384.
19-
config.vm.customize ["modifyvm", :id, "--memory", 512]
18+
# This setting gives the VM 1024MB of MEMORIES instead of the default 384.
19+
config.vm.customize ["modifyvm", :id, "--memory", 1024]
2020

2121
# This setting makes it so that network access from inside the vagrant guest
2222
# is able to resolve DNS using the hosts VPN connection.
@@ -25,5 +25,6 @@ Vagrant::Config.run do |config|
2525
config.vm.forward_port 3000, 4000
2626
config.vm.forward_port 1080, 4080 # Mailcatcher
2727

28-
config.vm.share_folder("v-root", "/vagrant", ".")
28+
nfs_setting = RUBY_PLATFORM =~ /darwin/ ? true : false
29+
config.vm.share_folder("v-root", "/vagrant", ".", :nfs => nfs_setting)
2930
end

0 commit comments

Comments
 (0)