summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2019-08-30 11:14:50 +0200
committerChristoph Helma <helma@in-silico.ch>2019-08-30 11:14:50 +0200
commitc9f8cd864a2b72e7330b8095691fa5c16fea83aa (patch)
tree53a41d3191a18187df64c01d84744409a305b874 /application.rb
parent1577e6db1eef50344b5416645a83539b02ed1b7e (diff)
Dockerfile and start script added
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index ef059b2..fb03a72 100644
--- a/application.rb
+++ b/application.rb
@@ -21,7 +21,7 @@ PUBCHEM_CID_URI = PUBCHEM_URI.split("/")[0..-3].join("/")+"/compound/"
configure :production, :development do
STDOUT.sync = true
$logger = Logger.new(STDOUT)
- $logger.level = Logger::DEBUG
+ #$logger.level = Logger::DEBUG
end
before do
@@ -42,7 +42,7 @@ before do
if request.path =~ /predict/
@accept = request.env['HTTP_ACCEPT'].split(",").first
response['Content-Type'] = @accept
- halt 400, "Mime type #{@accept} is not supported." unless @accept == "text/html" || "*/*"
+ halt 400, "Mime type #{@accept} is not supported." unless @accept == "text/html" or @accept == "*/*"
@version = File.read("VERSION").chomp
else
@accept = request.env['HTTP_ACCEPT'].split(",").first