Code Monkey home page Code Monkey logo

redis-ui's People

Contributors

jwelshiv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redis-ui's Issues

can't convert Symbol into Integer (TypeError)

Hi,

I have tried to install redis-ui with gem:

redis (2.2.0)
redis-ui (0.1.0)

but I got the following error when run:

# redis-ui 
/usr/local/lib/ruby/gems/1.9.1/gems/redis-2.2.0/lib/redis/client.rb:8:in `[]': can't convert Symbol into Integer (TypeError)
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-2.2.0/lib/redis/client.rb:8:in `initialize'
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-2.2.0/lib/redis.rb:54:in `new'
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-2.2.0/lib/redis.rb:54:in `initialize'
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-ui-0.1.0/lib/redis-ui.rb:15:in `new'
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-ui-0.1.0/lib/redis-ui.rb:15:in `block in '
    from /usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.2.6/lib/sinatra/base.rb:1211:in `configure'
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-ui-0.1.0/lib/redis-ui.rb:13:in `'
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-ui-0.1.0/lib/redis-ui.rb:11:in `'
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-ui-0.1.0/lib/redis-ui.rb:1:in `'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/lib/ruby/gems/1.9.1/gems/redis-ui-0.1.0/bin/redis-ui:3:in `'
    from /usr/local/bin/redis-ui:19:in `load'
    from /usr/local/bin/redis-ui:19:in `'

Can you help me solve this?

# ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.3
  - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /usr/local/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/1.9.1
     - /root/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

namespace not carried through to keys url

when i am viewing only the keys in a certain namespace "ns", all of the links to "/keys/foo" should be to "/keys/ns:foo" but instead they are broken to "/keys/foo"

furthermore, they should all really be "/keys/ns%3Afoo", its unhealthy to leave URL-encoding to the browser, but that is a minor gripe.

otherwise, cool utility. thanks for it very much

Can I connect to different Redis port?

By the default, redis-ui connect to the Redis which was running on localhost:6379? Therefore, If I haven't any Redis instance running on port 6379, I will got the below error:

Connection refused - Unable to connect to Redis on 127.0.0.1:6379

Can I make redis-ui connect to different Redis port, and moreover is remote Redis server?

Can I specific a different port for WEBrick?

I tried to use the -p option, but it seems doesn't support:

# ruby /usr/local/bin/redis-ui -p 2302
WARNING: using the built-in Timeout class which is known to have issues when used for opening connections. Install the SystemTimer gem if you want to make sure the Redis client will not hang.
== Sinatra/1.2.6 has taken the stage on 4567 for development with backup from WEBrick
[2011-05-21 09:52:43] INFO  WEBrick 1.3.1
[2011-05-21 09:52:43] INFO  ruby 1.8.7 (2008-05-31) [x86_64-linux]
[2011-05-21 09:52:43] WARN  TCPServer Error: Address already in use - bind(2)
== Someone is already performing on port 4567!

I have a redis instance running on port 4567:

# netstat -nlp | grep :4567
tcp        0      0 192.168.5.199:4567          0.0.0.0:*                   LISTEN      3813/redis-server 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.