Sha256: 24653cc0dbf1ed8f7fce1adb96206a204a27ef33e516099b723850b864fd2e82

Contents?: true

Size: 615 Bytes

Versions: 9

Compression:

Stored size: 615 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
  
  map '/assets' do
    run MongodbLogger::Assets.instance
  end

  map '/' do
    run MongodbLogger::Server.new
  end
else
  raise "Please provide config file"
  exit 1
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mongodb_logger-0.6.2 config.ru
mongodb_logger-0.6.1 config.ru
mongodb_logger-0.6.0 config.ru
mongodb_logger-0.5.2 config.ru
mongodb_logger-0.5.1 config.ru
mongodb_logger-0.5.0 config.ru
mongodb_logger-0.4.2 config.ru
mongodb_logger-0.4.1 config.ru
mongodb_logger-0.4.0 config.ru