Sha256: b707875d9a5f07fb764bc0e3d2445249bd5577601c951909f4338eb98def4ff6
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
ENV['RACK_ENV'] ||= 'development' ENV['KARAFKA_ENV'] ||= ENV['RACK_ENV'] Bundler.require(:default, ENV['KARAFKA_ENV']) Karafka::Loader.new.load(Karafka::App.root) # App class class App < Karafka::App setup do |config| config.kafka = { hosts: %w( 127.0.0.1:9092 ) } config.name = 'example_app' config.redis = { url: 'redis://localhost:6379' } end routes.draw do # topic :example do # controller ExampleController # interchanger CustomInterchanger # end end end App.boot!
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
karafka-0.5.0 | lib/karafka/templates/app.rb.example |