Skip to content

Commit

Permalink
Fixing livereload so that it works with https
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamilto committed Feb 10, 2016
1 parent f25c96c commit 07730a3
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
14 changes: 13 additions & 1 deletion assets/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ module.exports = function (grunt) {
files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
tasks: ['newer:jshint:all'],
options: {
livereload: '<%= connect.options.livereload %>'
livereload: {
key: grunt.file.read('livereload.key'),
cert: grunt.file.read('livereload.crt')
}
}
},
jsTest: {
Expand All @@ -53,6 +56,15 @@ module.exports = function (grunt) {
files: '<%= yeoman.app %>/styles/*.less',
tasks: ['less']
},
html: {
files: '<%= yeoman.app %>/views/{,*/}*.html',
options: {
livereload: {
key: grunt.file.read('livereload.key'),
cert: grunt.file.read('livereload.crt')
}
}
},
extensions: {
files: ['extensions/extensions.js', 'extensions/extensions.css'],
tasks: ['copy:extensions']
Expand Down
1 change: 1 addition & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Contributing
```
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
```
8. For livereload to work, you must visit https://localhost:35729/livereload.js?snipver=1 and accept the unsigned certs
#### Enable / disable console log output
Expand Down
14 changes: 14 additions & 0 deletions assets/livereload.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----BEGIN CERTIFICATE-----
MIICKTCCAZICCQCdTodCYWqfyjANBgkqhkiG9w0BAQUFADBZMQswCQYDVQQGEwJB
VTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0
cyBQdHkgTHRkMRIwEAYDVQQDEwlsb2NhbGhvc3QwHhcNMTYwMjA5MTgwMDE4WhcN
MTYwMzEwMTgwMDE4WjBZMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0
ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMRIwEAYDVQQDEwls
b2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKL/2uyvmAjq9pRx
mPEmIjvUSgracEQVYYU3wnPj04uniagqCJ0RBDSZNkLHf3cNt2Tz5GEPEfzIYeNM
G2yECZE5DnXlAFhBqoHoFkT2xbE5OpUNmkS+w6UA6WMs6wTtYsHaoRKDwUGTGTor
jSq5drQy63/FcaYvutM7QUbiqr65AgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAQpJz
VNYIWCzJOuUWu8FcmE1SdFezhAmGMKDVwk3NIGzZ5BBe9UPnh/zzwd1GaDYfQKnV
mOA+pkaKJrL0c+Lh7lfh8d3HKm0Vc5R/79igOsarF8VVpNjJ1SH78TpI2LqfRRSR
bBJ3ENa42ktnyP0nLGBpxeeoR5IYyaQI5t7KII0=
-----END CERTIFICATE-----
15 changes: 15 additions & 0 deletions assets/livereload.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQCi/9rsr5gI6vaUcZjxJiI71EoK2nBEFWGFN8Jz49OLp4moKgid
EQQ0mTZCx393Dbdk8+RhDxH8yGHjTBtshAmROQ515QBYQaqB6BZE9sWxOTqVDZpE
vsOlAOljLOsE7WLB2qESg8FBkxk6K40quXa0Mut/xXGmL7rTO0FG4qq+uQIDAQAB
AoGBAJ6WVlcgBMjwalZFK+u8EWSqiBuFKeNj9gzaEmwUxpbCu5EMzHKcwr22L2/L
j/2yL7OeA55XPkX2ZB70xl3PHUpLWsKDyR5sJBEzwKd0vdRw/PMFPMa7/bCY4Yiw
KJqp3OuyfHDdT/nsA79W2ZZ9CItpR4F3Yyq/+Ew9W46CLp0dAkEA0alvGFZf3sSB
9Lc0PFwH2FWVD+DFKLOvHOSF7nXV5zT0N8JMUqoRCCo34of6zAnPHf3vAa6/Usfr
KOdD9HSGNwJBAMcGSMP8OuQ9TDa7vmPCOpfM3+VAM4mZNuSkChZXC3dysjaJVyVB
YYQfKW2EBQCDDRYrPi7tepsLa6PpVKmHao8CQHaUR5sSLwLFTWLkwwxoWJ+IN9hV
He1ZQu8qaH1n8+TiVEW9BIG0YhGmHxlmIviHi7bAyg6/kMH3BA+MTSjTRp0CQQCK
1/97ekM7Zuf8Zw1zWtS1gd/QdvF9VL3O1AGVhDQjqIhbM4TwIKR/H54vIKK8sLA4
fwJqipG2CEmXl/fQLQBRAkEAwmRX2BLlpx8w9SkaNRWH6QNPtp3+DdNB7Muufuje
Z857p9We4DfIdigyQaGPpy/UNoQTdGd6boHFFmyzyudDRg==
-----END RSA PRIVATE KEY-----

0 comments on commit 07730a3

Please sign in to comment.