Skip to content

Commit 92cd3d4

Browse files
lewispbjeremy
authored andcommitted
Add a development console
Access with `bin/console`. A Redis connection and logger is set up, Kredis is required and the data structures can be explored.
1 parent 3ca9566 commit 92cd3d4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

bin/console

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env ruby
2+
3+
require "irb"
4+
require "bundler/inline"
5+
6+
gemfile do
7+
source "https://rubygems.org"
8+
gem "kredis", path: "../"
9+
end
10+
11+
12+
Kredis.configurator = Class.new { def config_for(name) { db: "2" } end }.new
13+
ActiveSupport::LogSubscriber.logger = ActiveSupport::Logger.new(STDOUT)
14+
15+
IRB.start

0 commit comments

Comments
 (0)