Closed PawelPatyk closed 5 years ago
@PawelPatyk I have only found using wildcards to work http://domain/*
@PawelPatyk I have only found using wildcards to work
http://domain/*
I should note that I stopped using this as it was causing constant refreshes when using some JS
@PawelPatyk @kilevvri1 You can indeed repeat the Host URL in the Source URLs field (with or without wildcards) and the page will monitor itself. For example, if the page is http://127.0.0.1/pages/contact.php
, you can put http://127.0.0.1/pages/contact.php
in both fields and it will refresh the page if the php-generated contact page contains a change.
If you serve static files on the same domain you can put http://127.0.0.1/*
in the Host URL field and multiple URL patterns in the Source URLs field that don't include the static files, like http://127.0.0.1/*.php
, or http://127.0.0.1/pages/*
, or http://127.0.0.1/contact/*
+http://127.0.0.1/articles/*
+http://127.0.0.1/blog/*
.
Blacklist patterns are currently not supported.
It's not possible to monitor local (php) files, see https://github.com/blaise-io/live-reload/issues/3.
@blaise-io You say it's not possible but I use Grunt and the LiveReload Chrome extension and that does it quite nicely. I had hoped that I wouldn't have to run grunt every time I needed to monitor changes to .js, .php and .css with live-reload but but it hasn't been consistent. Thanks for the work anyways.
@kilevvri1 LiveReload uses additional software to monitor local files that you have to install manually.
@blaise-io Didn't know that. Oh well.
How can you add support for PHP files?