From a0bd4375772d1e92c82162c3730b8cce6c4a58e9 Mon Sep 17 00:00:00 2001 From: Tim Kang Date: Fri, 20 Feb 2015 21:10:38 -0800 Subject: [PATCH] Update docs to demonstrate `hostname` option usage --- docs/watch-options.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/watch-options.md b/docs/watch-options.md index 40d5a1f..80c4913 100644 --- a/docs/watch-options.md +++ b/docs/watch-options.md @@ -171,7 +171,7 @@ watch: { }, ``` -It's possible to get livereload working over https connections. To do this, pass an object to `livereload` with a `key` and `cert` paths specified. +Passing an object to `livereload` allows listening on a specific port and hostname/IP or over https connections (by specifying `key` and `cert` paths). Example: ```js @@ -181,6 +181,7 @@ watch: { tasks: ['sass'], options: { livereload: { + host: 'localhost', port: 9000, key: grunt.file.read('path/to/ssl.key'), cert: grunt.file.read('path/to/ssl.crt')