mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Remove redundant vars in Invoke livereload task
This commit is contained in:
parent
8b4c46d74b
commit
ae7af1d696
1 changed files with 4 additions and 5 deletions
|
|
@ -95,13 +95,12 @@ def livereload(c):
|
||||||
from livereload import Server
|
from livereload import Server
|
||||||
build(c)
|
build(c)
|
||||||
server = Server()
|
server = Server()
|
||||||
deploy_path = CONFIG['deploy_path']
|
# Watch content source files
|
||||||
content_path = SETTINGS['PATH']
|
|
||||||
content_file_extensions = ['.md', '.rst']
|
content_file_extensions = ['.md', '.rst']
|
||||||
for file_extension in content_file_extensions:
|
for extension in content_file_extensions:
|
||||||
content_blob = '{0}/**/*{1}'.format(content_path, file_extension)
|
content_blob = '{0}/**/*{1}'.format(SETTINGS['PATH'], extension)
|
||||||
server.watch(content_blob, lambda: build(c))
|
server.watch(content_blob, lambda: build(c))
|
||||||
server.serve(root=deploy_path)
|
server.serve(root=CONFIG['deploy_path'])
|
||||||
|
|
||||||
{% if cloudfiles %}
|
{% if cloudfiles %}
|
||||||
@task
|
@task
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue