ENV['RACK_ENV'] ||= 'development' require 'slack-ruby-bot-server' require_relative 'commands' Mongoid.load!(File.expand_path('config/mongoid.yml', __dir__), ENV['RACK_ENV']) if ENV['RACK_ENV'] == 'development' puts 'Loading NewRelic in developer mode ...' require 'new_relic/rack/developer_mode' use NewRelic::Rack::DeveloperMode end NewRelic::Agent.manual_start SlackRubyBotServer::App.instance.prepare! SlackRubyBotServer::Service.start! run SlackRubyBotServer::Api::Middleware.instance