diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-08-24 12:17:07 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-08-24 12:17:07 +0200 |
commit | 8c6c59980bc82dc2177147f2fe34adf8bfbc1539 (patch) | |
tree | 35fb78389a9ac2d54d4d2190c41a8269a754f205 /lib/lazar.rb | |
parent | 398d8ca681db3aa0a0552eee026705e60dd8449d (diff) |
Model::Prediction with tests, initial indexesv0.0.8
Diffstat (limited to 'lib/lazar.rb')
-rw-r--r-- | lib/lazar.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/lazar.rb b/lib/lazar.rb index 174fb2c..d0128b7 100644 --- a/lib/lazar.rb +++ b/lib/lazar.rb @@ -15,20 +15,19 @@ require "base64" ENV["MONGOID_ENV"] ||= "development" # TODO remove config files, change default via ENV or directly in Mongoid class Mongoid.load!("#{File.expand_path(File.join(File.dirname(__FILE__),'..','mongoid.yml'))}") -# TODO get Mongo::Client from Mongoid -$mongo = Mongo::Client.new('mongodb://127.0.0.1:27017/opentox') -# TODO same for GridFS +$mongo = Mongoid.default_client +#$mongo = Mongo::Client.new('mongodb://127.0.0.1:27017/opentox') $gridfs = $mongo.database.fs # R setup R = Rserve::Connection.new # Logger setup +STDOUT.sync = true # for redirection, etc see http://stackoverflow.com/questions/8549443/why-doesnt-logger-output-to-stdout-get-redirected-to-files $logger = Logger.new STDOUT # STDERR did not work on my development machine (CH) $logger.level = Logger::DEBUG Mongo::Logger.logger = $logger Mongo::Logger.level = Logger::WARN -#Mongoid.logger = $logger # Require sub-Repositories require_relative '../libfminer/libbbrc/bbrc' # include before openbabel |