Commit 0e65d8a

mo <mo@mokhan.ca>
2019-01-29 16:00:11
set default host and protocol
1 parent 712f47d
Changed files (1)
config/application.rb
@@ -27,5 +27,7 @@ module Proof
     # -- all .rb files in that directory are automatically loaded after loading
     # the framework and any gems in your application.
     config.middleware.delete(Rack::Runtime)
+    routes.default_url_options[:host] = ENV['RAILS_HOST']
+    routes.default_url_options[:protocol] = 'https' unless Rails.env.test?
   end
 end