Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update Unicorn example.

  • Loading branch information...
commit 78b073be79402b8c4bca7089b465d44d3685752b 1 parent 8b2b4ca
@djanowski djanowski authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  examples/unicorn/config.ru
  2. +1 −1  examples/unicorn/unicorn.rb
View
2  examples/unicorn/config.ru
@@ -1,3 +1,3 @@
run lambda { |env|
- [200, {"Content-Type" => "text/plain"}, [$redis.randomkey]]
+ [200, {"Content-Type" => "text/plain"}, [Redis.current.randomkey]]
}
View
2  examples/unicorn/unicorn.rb
@@ -16,5 +16,5 @@
# worker processes.
after_fork do |server, worker|
- $redis = Redis.connect
+ Redis.current.quit
end
Please sign in to comment.
Something went wrong with that request. Please try again.