Sha256: 1c9e56fa17d5f27a7160b7975a3cc7604de9e252e4e2978d2f86411c6e499724

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-bot-server-rtm-0.2.0 sample_apps/sample_app_activerecord/config.ru
slack-ruby-bot-server-rtm-0.1.1 sample_apps/sample_app_activerecord/config.ru
slack-ruby-bot-server-rtm-0.1.0 sample_apps/sample_app_activerecord/config.ru