forked from github/pelican
run pelican first before waiting for changes
This commit is contained in:
parent
b289dcea82
commit
43e513f218
1 changed files with 2 additions and 2 deletions
|
|
@ -455,8 +455,9 @@ def autoreload(args, excqueue=None):
|
||||||
settings_file = os.path.abspath(args.settings)
|
settings_file = os.path.abspath(args.settings)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
changed_files = wait_for_changes(args.settings, Readers, settings)
|
pelican.run()
|
||||||
|
|
||||||
|
changed_files = wait_for_changes(args.settings, Readers, settings)
|
||||||
changed_files = {c[1] for c in changed_files}
|
changed_files = {c[1] for c in changed_files}
|
||||||
|
|
||||||
if settings_file in changed_files:
|
if settings_file in changed_files:
|
||||||
|
|
@ -464,7 +465,6 @@ def autoreload(args, excqueue=None):
|
||||||
|
|
||||||
console.print('\n-> Modified: {}. re-generating...'.format(
|
console.print('\n-> Modified: {}. re-generating...'.format(
|
||||||
', '.join(changed_files)))
|
', '.join(changed_files)))
|
||||||
pelican.run()
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
if excqueue is not None:
|
if excqueue is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue