parent
39c6a55afa
commit
7817d405a0
@ -188,8 +188,9 @@ watch: {
|
||||
options: {
|
||||
livereload: {
|
||||
port: 9000,
|
||||
key: 'path/to/ssl.key',
|
||||
cert: 'path/to/ssl.crt'
|
||||
key: grunt.file.read('path/to/ssl.key'),
|
||||
cert: grunt.file.read('path/to/ssl.crt')
|
||||
// you can pass in any other options you'd like to the https server, as listed here: http://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -160,8 +160,9 @@ watch: {
|
||||
options: {
|
||||
livereload: {
|
||||
port: 9000,
|
||||
key: 'path/to/ssl.key',
|
||||
cert: 'path/to/ssl.crt'
|
||||
key: grunt.file.read('path/to/ssl.key'),
|
||||
cert: grunt.file.read('path/to/ssl.crt')
|
||||
// you can pass in any other options you'd like to the https server, as listed here: http://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -28,11 +28,6 @@ module.exports = function(grunt) {
|
||||
if (servers[options.port]) {
|
||||
this.server = servers[options.port];
|
||||
} else {
|
||||
if (options.key && options.cert) {
|
||||
options.key = grunt.file.read(options.key);
|
||||
options.cert = grunt.file.read(options.cert);
|
||||
}
|
||||
|
||||
this.server = tinylr(options);
|
||||
this.server.server.removeAllListeners('error');
|
||||
this.server.server.on('error', function(err) {
|
||||
|
Loading…
Reference in New Issue
Block a user