This guide assumes that you have ruby and the sass gem installed, and that you have a basic knowledge of the unix terminal. I use nano
here, but you can use whatever editor you'd like.
###Find out Path Info
$ echo $PATH
$ gem environment
Save output from $PATH variable and paths in "GEM PATHS:" in a blank text file somewhere for use in the sass-watch file.
###Make Files
$ nano /path/to/sass-watch
$ chomod 755 /path/to/sass-watch
Make sure you get >>> Sass is watching for changes. Press Ctrl-C to stop.
whenever you you execute /path/to/sass-watch before making the daemon file.
$ sudo nano /etc/init.d/sass
$ sudo chmod 755 /etc/init.d/sass
Test and make sure /etc/init.d/sass start
and /etc/init.d/sass stop
work before adding to update-rc.
$ sudo update-rc.d sass defaults
###Try it Out
$ sudo service sass start
$ sudo service sass stop
thanks! had to change the --user to --chuid to get it to run as my user, but then it worked great for me!