Sha256: 64e3c5c2082a332d0d59af55774e403dd2946211d64e57973007c58c3e111d5d

Contents?: true

Size: 526 Bytes

Versions: 25

Compression:

Stored size: 526 Bytes

Contents

#!/usr/bin/env ruby
require 'logger'

$LOAD_PATH.unshift ::File.expand_path(::File.dirname(__FILE__) + '/lib')
require 'mongodb_logger/server'

# Set the MONGODBLOGGERCONFIG env variable
# config file you want loaded on boot.
if ENV['MONGODBLOGGERCONFIG'] && ::File.exists?(::File.expand_path(ENV['MONGODBLOGGERCONFIG']))
  MongodbLogger::ServerConfig.set_config(::File.expand_path(ENV['MONGODBLOGGERCONFIG']))
  use Rack::ShowExceptions
  run MongodbLogger::Server.new
else
  raise "Please provide config file"
  exit 1
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mongodb_logger-0.3.3-jruby config.ru
mongodb_logger-0.3.3 config.ru
mongodb_logger-0.3.2-jruby config.ru
mongodb_logger-0.3.2 config.ru
mongodb_logger-0.3.1-jruby config.ru
mongodb_logger-0.3.1 config.ru
mongodb_logger-0.3.0-jruby config.ru
mongodb_logger-0.3.0 config.ru
mongodb_logger-0.2.8-jruby config.ru
mongodb_logger-0.2.8 config.ru
mongodb_logger-0.2.7-jruby config.ru
mongodb_logger-0.2.7 config.ru
mongodb_logger-0.2.6 config.ru
mongodb_logger-0.2.6-jruby config.ru
mongodb_logger-0.2.5 config.ru
mongodb_logger-0.2.4 config.ru
mongodb_logger-0.2.3 config.ru
mongodb_logger-0.2.2 config.ru
mongodb_logger-0.2.1 config.ru
mongodb_logger-0.2.0 config.ru