Skip to content

Commit

Permalink
Quiet livereload
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Jan 6, 2024
1 parent c40ab0c commit 8ef6887
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/transom/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def serve(self, port=8080):
watcher.start()

try:
livereload = _subprocess.Popen(f"livereload {self.output_dir} --wait 100", shell=True)
livereload = _subprocess.Popen(f"livereload {self.output_dir} --wait 100",
shell=True, stdout=_subprocess.DEVNULL, stderr=_subprocess.DEVNULL)
except _subprocess.CalledProcessError as e: # pragma: nocover
self.notice("Failed to start the livereload server, so I won't auto-reload the browser")
self.notice("Use 'npm install -g livereload' to install the server")
Expand Down

0 comments on commit 8ef6887

Please sign in to comment.