Forum archive
Htdocs mapped from Windows to Linux, Dev with Compass
Hey,
I got a little problem and maybe there is someone out there who can help.
Version: Turnkey LAMP Stack with Debian Linux 7
I have my web projects stored on my Windows Computer in htdocs directory. The Windows computer is the host for my Turnkey-VM. The reasons for this configuration are: simple backup, quick edit of files on my main OS Windows, development with my Windows tools eclipse/notepad++.
This dir is shared. I mounted this share in my Turnkey-Linux-VM with the fstab entry
//192.168.137.1/htdocs /media/htdocs cifs credentials=/root/.smbcredentials,uid=1000,gid=100,file_mode=0777,dir_mode=0777 0 0
Not secure, I know. It's simply my Development-VM ;-)
My Apache uses this share by
<VirtualHost *:8000>
DocumentRoot /media/htdocs
<Directory "/media/htdocs">
allow from all
order allow,deny
</Directory>
</VirtualHost>
Everything works fine, except one thing. Using "Compass watch" to compile my scss-files Compass doesn't realize any change of files. So while watching Compass doesn't compile anything.
The setup:
One SSH screen with "compass watch"
Second SSH screen with "nano somewhat.scss" Changing/saving the file makes Compass compile.
Open "somewhat.scss" with e.g. Notepad++ under my Windows, changing/saving the file, Compass is still waiting for changes and does nothing. Restarting Compass in SSH screen One starts the compile process, so I assume my Compass is working properly. It simply doesn't get the change of file.
Hmm, does anyone know why? Any help or documentation appreciated. Thanks for your time in advance.
Oliver
But my guess is either a Compass setting; or a caching issue. Personally I'd be inclined to contact the Compass community and see if they have any input or ideas.
FWIW TurnKey 13 LAMP appliance is essentially just Debian Wheezy with Apache, MySQL, PHP, Python and Perl - all installed from default Debian repos with no significant customisations. The TKL bits are inclusion of tools such as Webmin, Webshell, etckeeper, TKLBAM, etc). So I'm 99% sure that if you set up your own Debian LAMP you'd have the same experience.
Perhaps a workaround would be to access the files via a different way. I know Notepad++ has a built in SFTP client which I suspect would avoid this issue. Also I have used WinSSHFS to successfully map SSH/SFTP to Win Explorer in the past. It's abandonware and does crash if Windows goes to sleep (when it wakes back up again) but I recall that I worked around that (I don't recall the details but it was essentially configuring Win to kill it when it went to sleep and restart it when it woke up). Installing Samba and connecting to a share on your VM is another option (rather than hosting the share in Windows).