Skip to content

Commit

Permalink
- change default base_path to ''
Browse files Browse the repository at this point in the history
- move app instance outside of the map block
  • Loading branch information
krsyoung committed Aug 25, 2016
1 parent 5bb7eee commit 4c0deea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $ redmon
Thin web server (v1.7.0 codename Dunder Mifflin)
Maximum connections set to 1024
Listening on 0.0.0.0:4567, CTRL+C to stop
[16-08-22 19:36:53] listening on http://0.0.0.0:4567/
[16-08-22 19:36:53] listening on http://0.0.0.0:4567
```

If you want to simulate a weak load on redis
Expand Down
3 changes: 2 additions & 1 deletion lib/redmon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ def start_app
require 'thin'
base_path = config.base_path
Thin::Server.start(*config.web_interface) do
app = Redmon::App.new
map base_path do
run Redmon::App.new
run app
end
end
log "listening on http://#{config.web_interface.join(':')}#{base_path}"
Expand Down
2 changes: 1 addition & 1 deletion lib/redmon/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Config
DEFAULTS = {
:namespace => 'redmon',
:redis_url => 'redis://127.0.0.1:6379',
:base_path => '/',
:base_path => '',
:app => true,
:worker => true,
:web_interface => ['0.0.0.0', 4567],
Expand Down

0 comments on commit 4c0deea

Please sign in to comment.