A simple administration / monitoring app for emque-consuming applications.
Add this lines to your application's Gemfile:
gem 'emque-web'
# if you require 'sinatra' you get the DSL extended to Object
gem 'sinatra', '~> 1.3', :require => nil
And then execute:
$ bundle
Add the following to your config/routes.rb:
require "emque/web"
mount Emque::Web => "/emque"
Then configure it to point at the status address for your emque-consuming app(s)
# config/initializers/emque_web.rb
require "emque/web"
Emque::Web.configure do
config.sources = ["localhost:9292", "localhost:10000"]
# ...
end
Basic auth (via Rack::Auth::Basic) is included, but turned off by default. You can enable it in your initializer:
# config/initializers/emque_web.rb
require "emque/web"
Emque::Web.configure do
# ...
config.authentication = true
# defaults shown, please change them
config.username = ""
config.password = "password"
# ...
end
- Fork it ( https://github.com/[my-github-username]/emque-web/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request