File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class KaktosConfig(object):
3636 kc = KaktosConfig ()
3737
3838 kc .is_debug = is_debug ()
39- kc .config = reload ( config )
39+ kc .config = config
4040 kc .frontend = frontend .api
4141 kc .path = path
4242
@@ -88,6 +88,10 @@ def setup():
8888def build_pages ():
8989 print ("building site..." )
9090
91+ # refresh content data on dev rebuilds so file edits are picked up
92+ if is_debug ():
93+ reload (config )
94+
9195 frontend .run_frontend_build ()
9296 freezer_app .freeze ()
9397 frontend .publish_static_to_build ()
@@ -126,6 +130,7 @@ def start_live_reload():
126130 server .watch (lockfile , build_pages )
127131
128132 server .watch (os .path .join (config .root_dir , "modules" , "config.py" ), build_pages )
133+ server .watch (os .path .join (config .root_dir , "extras" ), build_pages )
129134
130135 server .serve (root = "build" , port = 5555 )
131136
You can’t perform that action at this time.
0 commit comments