From b4fdc3017b9c05734b92151d7aa2e0353682fc09 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sat, 20 Jul 2019 17:07:39 -0400 Subject: Stage everything. Bleh, I'll commit to a clean history from now on --- haunt/reload.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 haunt/reload.py (limited to 'haunt/reload.py') 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) -- cgit v1.3