bdcravens / railo-vagrant

Simple setup to launch a VM using Vagrant running Ubuntu 12.04 and Railo
15 stars 8 forks source link

Tips to disable NFS on windows platform in your vagrantfile #12

Open devalnor opened 11 years ago

devalnor commented 11 years ago

config.vm.share_folder "code", "...", "...", :nfs=> (RUBY_PLATFORM =~ /mingw32/).nil?

mhenke commented 11 years ago

very cool thanks. I still can't get windows to work properly though I am using my fork with other updates https://github.com/mhenke/railo-vagrant/

mhenke commented 11 years ago

I used billy's and windows worked. must be something i did on my fork

devalnor commented 11 years ago

Another thing is that many host windows system are still in 32bits. For a project I switched in Precise32, like that it work on my colleagues's win32 computers. ;)

mhenke commented 11 years ago

My pull request https://github.com/bdcravens/railo-vagrant/pull/11 has this tickets fix in it. Seems my fork is working with windows again too.

mhenke commented 11 years ago

@devalnor we could add code in the node.js for operating system 32 or 64 or maybe even a ruby check to set poperly

mhenke commented 11 years ago

['a'].pack('P').length > 4 ? "64Bit" : "32Bit"

bdcravens commented 11 years ago

In local projects that I've used this as a basis for, I typically just write Ruby in Vagrantfile - I'll try to backport some of the work I've done to this project

devalnor commented 11 years ago

I'm not sure that is a good idea to code the operating system dynamically Better to keep exact system OS setting for same collaboratives projects. If it goes wrong, you don't have to suspect the OS difference...