summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2019-09-03 13:06:00 +0200
committerChristoph Helma <helma@in-silico.ch>2019-09-03 13:06:00 +0200
commita84d9eabf1b921086a688f81df28b0f21ba4df19 (patch)
tree8ca3d6c2a0bc8d22821212af2eada21cce2ea1e0 /application.rb
parentc9f8cd864a2b72e7330b8095691fa5c16fea83aa (diff)
docker installation as gem, links with port numbers, version 1.4.0prerelease
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/application.rb b/application.rb
index fb03a72..e23c042 100644
--- a/application.rb
+++ b/application.rb
@@ -18,16 +18,22 @@ PUBCHEM_CID_URI = PUBCHEM_URI.split("/")[0..-3].join("/")+"/compound/"
"validation.rb"
].each{ |f| require_relative "./lib/#{f}" }
-configure :production, :development do
+configure :production do
STDOUT.sync = true
$logger = Logger.new(STDOUT)
- #$logger.level = Logger::DEBUG
+end
+
+configure :development do
+ STDOUT.sync = true
+ $logger = Logger.new(STDOUT)
+ $logger.level = Logger::DEBUG
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
+ #$host_with_port = request.host =~ /localhost/ ? request.host_with_port : request.host
+ $host_with_port = request.host_with_port
$paths = [
"api",
"compound",