https only for production
This commit is contained in:
parent
95ef42d872
commit
03b38c2599
|
@ -1,5 +1,6 @@
|
|||
Lobsters::Application.routes.draw do
|
||||
root :to => "home#index", :protocol => "https://"
|
||||
root :to => "home#index",
|
||||
:protocol => (Rails.env == "production" ? "https://" : "http://")
|
||||
|
||||
get "/newest(.format)" => "home#newest"
|
||||
|
||||
|
|
Loading…
Reference in a new issue