Commit 918811f1be87e4aa53810c7e4329368c44d59447

Authored by Joshua Priddle
1 parent 11173e81
Exists in master and in 1 other branch production

Add config.secure to install instructions

app/views/apps/_configuration_instructions.html.haml
1 %pre 1 %pre
2 %code 2 %code
3 :preserve 3 :preserve
4 - 4 +
5 # Require the hoptoad_notifier gem in you App. 5 # Require the hoptoad_notifier gem in you App.
6 # -------------------------------------------- 6 # --------------------------------------------
7 # 7 #
@@ -14,9 +14,10 @@ @@ -14,9 +14,10 @@
14 # Then add the following to config/initializers/errbit.rb 14 # Then add the following to config/initializers/errbit.rb
15 # ------------------------------------------------------- 15 # -------------------------------------------------------
16 HoptoadNotifier.configure do |config| 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 end 21 end
21 # 22 #
22 # Testing 23 # Testing
@@ -28,5 +29,4 @@ @@ -28,5 +29,4 @@
28 # Run: 29 # Run:
29 # rake hoptoad:test 30 # rake hoptoad:test
30 # refresh this page 31 # refresh this page
31 -  
32 -  
33 \ No newline at end of file 32 \ No newline at end of file
  33 +