aboutsummaryrefslogtreecommitdiff
path: root/haunt/reload.py
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-07-20 17:07:39 -0400
committerJakob L. Kreuze2019-07-20 17:07:39 -0400
commitb4fdc3017b9c05734b92151d7aa2e0353682fc09 (patch)
treea056a6a6e379bcae01b22c6dca203218c609cac3 /haunt/reload.py
parentaed8c20a9488f1ed4f4e316068cbafb07e8676ff (diff)
Stage everything. Bleh, I'll commit to a clean history from now on
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