#!/usr/bin/env ruby $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') begin require 'vegas' rescue LoadError require 'rubygems' require 'vegas' end require 'mongodb_logger/server' Vegas::Runner.new(MongodbLogger::Server, 'mongodb_logger_web', { :before_run => lambda {|v| config_file = (ENV['MONGODBLOGGERCONFIG'] || v.args.first) if config_file MongodbLogger::ServerConfig.set_config(config_file) else raise ArgumentError, "please provide config file" end } }) do |runner, opts, app| # end