Skip to content

Commit

Permalink
Fix theme not being watched
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Sep 11, 2018
1 parent 5ccc807 commit 28c1616
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def compile():
@task
def watch(ctx, verbose=False):
'''Serve the blog and watch changes'''
os.chdir(ROOT)
from livereload import Server

settings = get_settings()
Expand All @@ -145,6 +146,7 @@ def watch(ctx, verbose=False):
compile()
server = Server()
server.watch(CONF_FILE, compile)
server.watch('theme', compile)

DATA_PATHS = getattr(settings, 'DATA_PATHS', [])
for root in set(DATA_PATHS):
Expand Down

0 comments on commit 28c1616

Please sign in to comment.