diff options
| author | Jakob L. Kreuze | 2019-07-20 17:07:39 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-07-20 17:07:39 -0400 |
| commit | b4fdc3017b9c05734b92151d7aa2e0353682fc09 (patch) | |
| tree | a056a6a6e379bcae01b22c6dca203218c609cac3 /haunt/reload.py | |
| parent | aed8c20a9488f1ed4f4e316068cbafb07e8676ff (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.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) |