From c9f8cd864a2b72e7330b8095691fa5c16fea83aa Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 30 Aug 2019 11:14:50 +0200 Subject: Dockerfile and start script added --- application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application.rb') 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 -- cgit v1.2.3