Sha256: f6cfd21c6b52fcfb170a4316c53587338f91fd32a4e34bc07ac340e9c6448050
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 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.file?(::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongodb_logger-0.6.5 | config.ru |
mongodb_logger-0.6.4 | config.ru |
mongodb_logger-0.6.3 | config.ru |