add example rackup app
This commit is contained in:
parent
52072b943e
commit
7b021d9e85
2 changed files with 19 additions and 0 deletions
|
@ -45,6 +45,9 @@ libraries and headers installed.
|
|||
$ riemann-dash
|
||||
```
|
||||
|
||||
Riemann-dash can also run in a web server supporting the Rack interface. An
|
||||
example rackup app is found in "example/config.ru".
|
||||
|
||||
Development
|
||||
===========
|
||||
|
||||
|
|
16
example/config.ru
Normal file
16
example/config.ru
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Example Rack handler.
|
||||
|
||||
# To run riemann-dash in a Rack-compatible web server such as nginx/apache
|
||||
# with phusion passenger, you can use this rackup app. Refer to your Ruby
|
||||
# application server's documentation to find out how to configure it to load
|
||||
# this file.
|
||||
|
||||
# Uncomment the following line if you installed riemann-dash outside of ruby's
|
||||
# load path (ruby -e 'puts $LOAD_PATH' to check).
|
||||
#$LOAD_PATH.unshift('/path/to/riemann-dash/lib')
|
||||
|
||||
require 'riemann/dash'
|
||||
|
||||
Riemann::Dash::App.load '/path/to/config.rb'
|
||||
run Riemann::Dash::App
|
||||
|
Loading…
Reference in a new issue