mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
Merge pull request #232 from potthast/vagrant-nfs-linux
Vagrant now mounts NFS on both Linux and Darwin. Updated documentation accordingly.
This commit is contained in:
commit
1c55683f49
2 changed files with 12 additions and 1 deletions
3
Vagrantfile
vendored
3
Vagrantfile
vendored
|
@ -25,7 +25,8 @@ Vagrant::Config.run do |config|
|
||||||
config.vm.forward_port 3000, 4000
|
config.vm.forward_port 3000, 4000
|
||||||
config.vm.forward_port 1080, 4080 # Mailcatcher
|
config.vm.forward_port 1080, 4080 # Mailcatcher
|
||||||
|
|
||||||
nfs_setting = RUBY_PLATFORM =~ /darwin/ ? true : false
|
nfs_setting = (RUBY_PLATFORM =~ /darwin/ or
|
||||||
|
RUBY_PLATFORM =~ /linux/) ? true : false
|
||||||
config.vm.share_folder("v-root", "/vagrant", ".", :nfs => nfs_setting)
|
config.vm.share_folder("v-root", "/vagrant", ".", :nfs => nfs_setting)
|
||||||
|
|
||||||
chef_cookbooks_path = ["chef/cookbooks"]
|
chef_cookbooks_path = ["chef/cookbooks"]
|
||||||
|
|
|
@ -26,6 +26,16 @@ Vagrant will prompt you for your admin password. This is so it can mount your lo
|
||||||
|
|
||||||
(The first time you do this, it will take a while as it downloads the VM image and installs it. Go grab a coffee.)
|
(The first time you do this, it will take a while as it downloads the VM image and installs it. Go grab a coffee.)
|
||||||
|
|
||||||
|
**Note to OSX/Linux users**: Vagrant will mount your local files via an NFS share. Therefore, make sure that NFS is installed or else you'll receive the error message:
|
||||||
|
|
||||||
|
```
|
||||||
|
Mounting NFS shared folders failed. This is most often caused by the NFS
|
||||||
|
client software not being installed on the guest machine. Please verify
|
||||||
|
that the NFS client software is properly installed, and consult any resources
|
||||||
|
specific to the linux distro you're using for more information on how to
|
||||||
|
do this.
|
||||||
|
```
|
||||||
|
|
||||||
Once the machine has booted up, you can shell into it by typing:
|
Once the machine has booted up, you can shell into it by typing:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue