Sha256: 00e4a89fe60daf63b29e308ca784a44206908db03a5bbe24c15236fb973758a8
Contents?: true
Size: 1.42 KB
Versions: 2
Compression:
Stored size: 1.42 KB
Contents
Nutcracker Web ============= [Nutcracker](https://github.com/kontera-technologies/nutcracker) web interface plugin <img src="https://github.com/kontera-technologies/nutcracker-web/raw/master/pics/pic1.png"/></br> <img src="https://github.com/kontera-technologies/nutcracker-web/raw/master/pics/pic2.png"/></br> <img src="https://github.com/kontera-technologies/nutcracker-web/raw/master/pics/pic3.png"/></br> <img src="https://github.com/kontera-technologies/nutcracker-web/raw/master/pics/pic4.png"/></br> ### Installation add this to your Gemfile ``` gem 'nutcracker-web' ``` And then execute: ``` $ bundle install ``` ### Usage example app ```ruby require 'nutcracker' require 'nutcracker/web' # Start nutcracker nutcracker = Nutcracker.start(config_file: 'cluster.conf') # Start the web service on port 1234 using Webrick nutcracker.use(:graphite, Port: 1234) # Sleeping.... nutcracker.join ``` `Nutcracker-Web` takes default [Rack](https://github.com/rack/rack) [options](https://github.com/rack/rack/blob/master/lib/rack/server.rb#L187..L199) ### Custom Webserver default webserver is `Webrick`, to use a different one, like [thin](http://code.macournoyer.com/thin/): ``` $ gem install thin ``` tell `Nutcracker-Web` to use it ```ruby require 'nutcracker' require 'nutcracker/web' require 'thin' nutcracker = Nutcracker.start(config_file: 'cluster.conf') nutcracker.use(:graphite, Port: 1234, server: :thin) nutcracker.join ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nutcracker-web-0.0.2 | README.md |
nutcracker-web-0.0.1 | README.md |