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