mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use port settings in Invoke livereload task
Instead of using LiveReload's default port 5500, use the existing `port` value from the task's CONFIG dictionary, which defaults to 8000.
This commit is contained in:
parent
ae7af1d696
commit
c8b0b52d4e
1 changed files with 2 additions and 1 deletions
|
|
@ -100,7 +100,8 @@ def livereload(c):
|
|||
for extension in content_file_extensions:
|
||||
content_blob = '{0}/**/*{1}'.format(SETTINGS['PATH'], extension)
|
||||
server.watch(content_blob, lambda: build(c))
|
||||
server.serve(root=CONFIG['deploy_path'])
|
||||
# Serve output path on configured port
|
||||
server.serve(port=CONFIG['port'], root=CONFIG['deploy_path'])
|
||||
|
||||
{% if cloudfiles %}
|
||||
@task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue