I'm trying to get SASS to watch an SCSS file for changes. When I run the watch command in any desktop folder, it works e.g. sass --watch Documents/test.scss:Documents/test.css
.
But when I run it in the /var/www directory, it fails. For example, running sass --watch /var/www/scss/test.scss:/var/www/css/test.css"
results in the following error: Errno::EACCES: Permission denied - /var/www/css/test.css
. That is likely because the /var/www directory is owned by Apache.
I tried using sudo sass --watch /var/www/test.scss:/var/www/test.css
command to run the command as root, but that gives me the follow error: sudo: sass: command not found
.
I'm running this on Ubuntu 12.10 with Ruby 1.9.3. I'm fairly new to both.