Sha256: 1ede727af50303493a3546cb68e7f8b46bf7801048f213df959f0df1dd165aa6
Contents?: true
Size: 645 Bytes
Versions: 34
Compression:
Stored size: 645 Bytes
Contents
require 'bundler/setup' Bundler.require(:default, :development, :test) MODE = ENV['RACK_ENV'] || 'test' require './lib/mongocore.rb' # Add settings here Mongocore.schema = File.join(Dir.pwd, 'config', 'db', 'schema') require './models/parent.rb' require './models/model.rb' # Logging verbosity Mongo::Logger.logger.level = ::Logger::DEBUG Mongo::Logger.logger.level = ::Logger::FATAL # To make the driver log to a logfile instead: # Mongo::Logger.logger = ::Logger.new('mongo.log') # Mongo::Logger.logger.level = ::Logger::INFO # Connect to DB Mongocore.db = Mongo::Client.new(['127.0.0.1:27017'], :database => "mongocore_#{MODE}")
Version data entries
34 entries across 34 versions & 1 rubygems