diff options
author | gebele <gebele@in-silico.ch> | 2019-08-16 09:49:53 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-08-16 09:49:53 +0000 |
commit | 270bddf5081671cd1905d6cce6eb3659159f573a (patch) | |
tree | 86dd2db590b86185cce8f52cefb2b7fba0fb9623 /application.rb | |
parent | 74332693fed1d5ecb695dd6ae0c2fc611d14c4d7 (diff) |
change hostname method
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/application.rb b/application.rb index 064c488..d6cf0f8 100644 --- a/application.rb +++ b/application.rb @@ -40,6 +40,9 @@ configure :production, :development do end before do + # use this hostname method instead to('/') + # allowes to set https for xhr requests + $host_with_port = request.host =~ /localhost/ ? request.host_with_port : request.host $paths = [ "api", "compound", |