diff options
Diffstat (limited to 'haunt/reload.py')
| -rw-r--r-- | haunt/reload.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/haunt/reload.py b/haunt/reload.py new file mode 100644 index 0000000..b4cc3c0 --- /dev/null +++ b/haunt/reload.py @@ -0,0 +1,14 @@ +#!/home/jakob/.guix-profile/bin/python + +from livereload import Server, shell +import os + +site_output = "site" + +server = Server() + +for path in os.listdir("./"): + if path != site_output: + server.watch(path, "haunt build") + +server.serve(root=site_output) |