mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Watch static folders in Autoreload mode
This commit is contained in:
parent
2c468f091a
commit
a987b65bd2
1 changed files with 3 additions and 0 deletions
|
|
@ -320,6 +320,9 @@ def main():
|
||||||
pelican.ignore_files),
|
pelican.ignore_files),
|
||||||
'settings': file_watcher(args.settings)}
|
'settings': file_watcher(args.settings)}
|
||||||
|
|
||||||
|
for static_path in settings.get("STATIC_PATHS", []):
|
||||||
|
watchers[static_path] = file_watcher(static_path)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if args.autoreload:
|
if args.autoreload:
|
||||||
print(' --- AutoReload Mode: Monitoring `content`, `theme` and'
|
print(' --- AutoReload Mode: Monitoring `content`, `theme` and'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue