Commits

Alessio Deiana committed 7580837

Reload configuration after copying all the files

  • Participants
  • Parent commits e4bdd54

Comments (0)

Files changed (1)

File src/invenio_devserver/serve.py

     mtimes = {}
     while 1:
         has_changes = False
+        has_conf_changes = False
 
         for filename in set(files):
             try:
 
                 if os.path.basename(filename) in (config.CONFIG_FILENAME,
                                                  config.LOCAL_CONFIG_FILENAME):
-                    update_conf()
+                    has_conf_changes = True
 
                 has_changes = True
 
+        if has_conf_changes:
+            update_conf()
+
         if has_changes and reloader:
             reloader()
             if not reloader.worker_pid: