Alternatively:
sudo pip install watchdog
watchmedo shell-command -w -c "make" -i '*/.*' -R
Where "make" is either for a makefile or some other build script.And then just put live.js (from http://livejs.com/) as a script inside your pages.
This works anywhere with basically any stack (i.e. if you had some strange alien CSS preprocessor as long as it can be processed with a command you can use this), integrates into your normal build system and requires no browser plugins or proprietary binaries.
Live.js uses polling. It sends XHR HEAD request every second.
LiveReload monitors file changes using FSEvents (on Mac OS X) and inotify (on Linux). When the file modified, it pushes its path to the browser and reloads immediately.
The horror!
https://github.com/mockko/livereload
After all the time that's been put into the free version by others I wish livereload.com would have a prominent link to it. But I'm glad that the gem, which I don't use because https://github.com/guard/guard-livereload is easier to install, and the browser extensions are available under the MIT license.
Has page reload and doesn't require any project specific settings.
It is open source and works (web app using an iframe + path to watch) without altering development habits.
I'm not trying to be snarky - I'm just genuinely surprised that no one has posted that they consider the need for "live refresh" to be wholly unnecessary.
I come from a background in C++ development where compile times range anywhere from a minute to a day, so I'm truly thankful for "instant compilation" of CSS and HTML via a single click of a keyboard button..... but I wouldn't ever dream that my need to hit the F5 key was hindering my development ability!
My motivation for building LiveReload has been to get the same instant feeling, but with compiled languages like LESS.
Are there droves of people who could benefit from constantly changing css?
Perhaps I'm just missing something rather obvious. If so, please help me.
I can also be quite useful during development. One cool trick to achieve something similar is to add a contentEditable attribute to a style tag: http://css-tricks.com/8618-show-and-edit-style-element/
C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
Every time it is saved the changes are reflected on all open webpages instantly.
For remote server use cases, I recommend guard-livereload. It uses my browser extensions and works really well on any platform.
https://github.com/guard/guard-livereload
https://github.com/guard/guard (has windows instructions)