admin管理员组文章数量:1406937
I'm using Vagrant 1.8.4, running Ubuntu 14.04 box. I have installed node v6.2.2 and I'm running windows 10 x64-bit on the host machine, when I change js files and run gulp watch / babel script.js --watch --out-file piled.js The problem the changes are not detected by the guest machine.
I tried the following but no luck:
config.vm.synced_folder ".", "/var/www",
:nfs => true,
:mount_options => ["dmode=777", "fmode=666", "lookupcache=none"]
and this
:mount_options => ["dmode=777", "fmode=666", "actimeo=1"]
Please advice,
I'm using Vagrant 1.8.4, running Ubuntu 14.04 box. I have installed node v6.2.2 and I'm running windows 10 x64-bit on the host machine, when I change js files and run gulp watch / babel script.js --watch --out-file piled.js The problem the changes are not detected by the guest machine.
I tried the following but no luck:
config.vm.synced_folder ".", "/var/www",
:nfs => true,
:mount_options => ["dmode=777", "fmode=666", "lookupcache=none"]
and this
:mount_options => ["dmode=777", "fmode=666", "actimeo=1"]
Please advice,
Share Improve this question asked Jun 29, 2016 at 21:47 Ya BashaYa Basha 1,9527 gold badges32 silver badges56 bronze badges2 Answers
Reset to default 7So I was running into this same problem with Vagrant and an Angular 4
+ Angular CLI
project. While running the development server, file changes weren't triggering a rebuild of the files and a reload of the app. The issue is that file system events aren't forwarded to the Vagrant virtual machine. Installing the vagrant-notification-forwarder
vagrant plugin solved the problem for me:
- https://github./mhallin/vagrant-notify-forwarder
The above mentioned solution "vagrant-notify-forwarder" not reliable for me. Sometimes it doesn't work for mac.
"vagrant-fsnotify" plugin works for me.
Read here for configuration setup https://github./adrienkohlbecker/vagrant-fsnotify
本文标签: javascriptdetect file changes in vagrant guest machineStack Overflow
版权声明:本文标题:javascript - detect file changes in vagrant guest machine - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744973602a2635385.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论