railo-vagrant icon indicating copy to clipboard operation
railo-vagrant copied to clipboard

Tips to disable NFS on windows platform in your vagrantfile

Open devalnor opened this issue 11 years ago • 8 comments

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

devalnor avatar Mar 13 '13 14:03 devalnor

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 avatar Mar 13 '13 14:03 mhenke

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

mhenke avatar Mar 13 '13 14:03 mhenke

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. ;)

devalnor avatar Mar 13 '13 14:03 devalnor

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 avatar Mar 13 '13 16:03 mhenke

@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 avatar Mar 13 '13 16:03 mhenke

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

mhenke avatar Mar 13 '13 16:03 mhenke

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

bdcravens avatar Mar 13 '13 16:03 bdcravens

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...

devalnor avatar Mar 14 '13 12:03 devalnor