dblock/slack-sup

View on GitHub
config.ru

Summary

Maintainability
Test Coverage
$LOAD_PATH.unshift(File.dirname(__FILE__))

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

require 'bundler/setup'
Bundler.require :default, ENV.fetch('RACK_ENV', nil)

require 'slack-ruby-bot-server'
require 'slack-sup'

NewRelic::Agent.manual_start

SlackSup::App.instance.prepare!

Thread.abort_on_exception = true

Thread.new do
  SlackRubyBotServer::Service.instance.start_from_database!
  SlackSup::App.instance.after_start!
end

run Api::Middleware.instance