Sha256: 954fa10152aee815f6039b3e241c97dcc1129f88d923270929b874ec8df847ef

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.3.1 sample_app/config.ru
slack-ruby-bot-server-0.3.0 sample_app/config.ru
slack-ruby-bot-server-0.2.0 sample_app/config.ru
slack-ruby-bot-server-0.1.1 sample_app/config.ru
slack-ruby-bot-server-0.1.0 sample_app/config.ru