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:
Justin Mayer 2019-06-20 08:12:14 +02:00
commit c8b0b52d4e

View file

@ -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