Sha256: 36db87ddb30e38a5ea2874627357a7c41cce0a2051f511b355983b0e0d0cb7aa

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

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

Bundler.require :default

require_relative 'commands'
require 'yaml'
require 'erb'

ActiveRecord::Base.establish_connection(
  YAML.safe_load(
    ERB.new(
      File.read('config/postgresql.yml')
    ).result, [], [], true
  )[ENV['RACK_ENV']]
)

NewRelic::Agent.manual_start

SlackRubyBotServer::App.instance.prepare!
SlackRubyBotServer::Service.start!

run SlackRubyBotServer::Api::Middleware.instance

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.12.3 sample_apps/sample_app_activerecord/config.ru
slack-ruby-bot-server-0.12.2 sample_apps/sample_app_activerecord/config.ru
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_activerecord/config.ru
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_activerecord/config.ru
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_activerecord/config.ru
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_activerecord/config.ru