summaryrefslogtreecommitdiff
path: root/haunt/reload.py
blob: b4cc3c0c44f2be15d21dc036e260d7d27a79b16e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)