Sha256: 47c2968b7308d5242ee622e1b159dbd7e62d8ab5b128b01900e3e1a9c77d2fe3

Contents?: true

Size: 495 Bytes

Versions: 5

Compression:

Stored size: 495 Bytes

Contents

ENV['RACK_ENV'] ||= 'development'

Bundler.require :default

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.7.0 sample_apps/sample_app_mongoid/config.ru
slack-ruby-bot-server-0.6.1 sample_apps/sample_app_mongoid/config.ru
slack-ruby-bot-server-0.6.0 sample_apps/sample_app_mongoid/config.ru
slack-ruby-bot-server-0.5.0 sample_app/config.ru
slack-ruby-bot-server-0.4.0 sample_app/config.ru