Shared files not updating reliably in a VMware guest while running a Node
server
I have a Ubuntu Server VM installed in VMware Workstation 9 with a Node
server installed and running. I am using a Windows 8 host, and using the
Connect package to serve files from a static directory with the following
code:
var connect = require('connect');
connect.createServer(connect.static('www')).listen(8080);
I have a shared folder mounted from the Windows 8 host at C:\Shared\ to
the Ubuntu Server VM at /mnt/hgfs/Shared/. I can edit files in the
directory C:\Shared\Node\www on the Windows 8 host, and then the Node
server on the Ubuntu Server VM serves the files, which I have been able to
access from the Windows 8 host and across the local network (while using a
bridged network setting in VMware).
The problem I am having is related to saving files on the Windows 8 host,
and having them update on the Ubuntu Server VM. When the Node server is
not running and I change a file on the Windows 8 host, the file is updated
instantly and reliably on the Ubuntu Server VM; however when the Node
server is running, the files sometimes end up corrupt on the Ubuntu Server
VM, and sometimes they fail to update at all.
I am using Dreamweaver to edit the files on the Windows 8 host, but the
problem is also present when editing only in Notepad. I have been checking
if the files have updated in a separate terminal using Vi as well.
Any help or ideas would be greatly appreciated; if any more information is
needed I will gladly provide it.
No comments:
Post a Comment