Commit 918811f1be87e4aa53810c7e4329368c44d59447
1 parent
11173e81
Exists in
master
and in
1 other branch
Add config.secure to install instructions
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
app/views/apps/_configuration_instructions.html.haml
1 | 1 | %pre |
2 | 2 | %code |
3 | 3 | :preserve |
4 | - | |
4 | + | |
5 | 5 | # Require the hoptoad_notifier gem in you App. |
6 | 6 | # -------------------------------------------- |
7 | 7 | # |
... | ... | @@ -14,9 +14,10 @@ |
14 | 14 | # Then add the following to config/initializers/errbit.rb |
15 | 15 | # ------------------------------------------------------- |
16 | 16 | HoptoadNotifier.configure do |config| |
17 | - config.api_key = '#{app.api_key}' | |
18 | - config.host = '#{request.host}' | |
19 | - config.port = #{request.port} | |
17 | + config.api_key = '#{app.api_key}' | |
18 | + config.host = '#{request.host}' | |
19 | + config.port = #{request.port} | |
20 | + config.secure = config.port == 443 | |
20 | 21 | end |
21 | 22 | # |
22 | 23 | # Testing |
... | ... | @@ -28,5 +29,4 @@ |
28 | 29 | # Run: |
29 | 30 | # rake hoptoad:test |
30 | 31 | # refresh this page |
31 | - | |
32 | - | |
33 | 32 | \ No newline at end of file |
33 | + | ... | ... |