There are many ways to reload a webpage when doing web development, It usually uses the framework provided tool (webpack, hugo, ...), they all use livereload.js on the browser side.
livereloadjs-bash is a shell script that uses miniserve, websocat and inotify-tools to implement a minimal livereloadjs server.
The easiest way to get started is to use the docker image:
# Replace WEB_PATH with the path of your web files
docker run --rm -ti --name 'livereloadjs-bash' -p 8080:8080 -p 34729:34729 -v "WEB_PATH:/www" izissise/livereloadjs-bash
you can also use livereload.sh
directly.
Once running, write your files as you normally do, every times you save, the page should reload.
Distributed under the MIT License. See LICENSE.txt
for more information.