aboutsummaryrefslogtreecommitdiff
path: root/haunt/reload.py
diff options
context:
space:
mode:
Diffstat (limited to 'haunt/reload.py')
-rw-r--r--haunt/reload.py14
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)

© 2015 - 2026 Jakob L. Kreuze