Note that there are some explanatory texts on larger screens.

plurals
  1. POnode.js script running in VM doesn't see folder changes made from main OS
    text
    copied!<p>I have following setup:</p> <ol> <li>Ubuntu Lucid 32 VM created by <a href="http://vagrantup.com/">Vagrant</a>.</li> <li>Folder from which Vagrant is started with some CSS and JS files. The folder is mounted inside VM at address /vagrant/.</li> <li><a href="https://github.com/cowboy/grunt">grunt.js</a> with watch task started from VM, watching for changes in css and js files. After the files are changed, it must concat this files to one css and one js file.</li> </ol> <p>The problem: Watch task in grunt.js didn't see changes in mounted folder.</p> <p>If I change files inside VM, watch task work normally. If I start grunt.js not from virtual box, but from main os it also works. Tried in Mac OS and Windows 7.</p> <p>Problem only happens then task is started from VM, and files are changed from main OS. Is there a workaround to this problem?</p> <p><strong>Update.</strong> Some details about our usage scenarios, to better understand context:</p> <ol> <li>We are desing studio, with 10+ peaple working with the code.</li> <li>Different people using different OS. We have: Win 7, Mc OS X and Ubuntu Linux.</li> <li>We are working on and supporting 100+ different projects. </li> <li>Prjects are using different languages and setups: We have PHP projects on our own CMS, PHP projects on Yii, Python projects on Django, and some node.js projects.</li> <li>Different developers may at some point of time work on any of this projects.</li> <li>Right now we spend a lot of time every time we need to make project work on computer of the developer, who didn't work with it before. And usually we need some help of developer who already worked on it to make it work.</li> </ol> <p>We want to make it more straightworward. For it we trying to use Vagrant and a number of pre-configured OS images.</p> <p>Right now project setup looks like this: </p> <ol> <li>Developer checkout project from git.</li> <li>Developer opens project folder in Terminal.</li> <li>Developer enters 'vagrant up'.</li> <li>After 5 minutes he have fully configured and working project copy.</li> </ol> <p>We like this setup and most of the time we didn't have any problems with it. But on our node.js projects we use some css and js preprocessors, and like to update their files in realtime. And there is the problem on initial post.</p> <p>Solutions with access to files with ssh VM and with project's files inside VM will probably work, but they didn't solve the base problem (fast and easy setup of big number of projects across group of developer running different OS'es)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload