Code Monkey home page Code Monkey logo

Comments (13)

xor-xor avatar xor-xor commented on July 18, 2024

Sure. Just overwrite these defaults in your local settings (i.e., ~/.tipboard/settings-local.py).

from tipboard.

csu avatar csu commented on July 18, 2024

Awesome! Thanks!

from tipboard.

csu avatar csu commented on July 18, 2024

I have a Redis URI in the format: redis://redacted-username:[email protected]:port. Should I put the username, password, and hostname all in REDIS_HOST and then the port in REDIS_PORT?

from tipboard.

xor-xor avatar xor-xor commented on July 18, 2024

Yes, I would do that. Let us know if that worked.

from tipboard.

csu avatar csu commented on July 18, 2024

I got:

File "/app/.tipboard/settings-local.py", line 12 
      REDIS_HOST = asdfasd:[email protected] 
                          ^ 
  SyntaxError: invalid syntax 

(The arrow is pointing at the colon)

from tipboard.

xliiv avatar xliiv commented on July 18, 2024

Probabbly missing quotes.. .
Try this:

REDIS_HOST = 'redacted-username:[email protected]'
REDIS_PORT = 6379

But change port to yours

from tipboard.

csu avatar csu commented on July 18, 2024

Ah, that was it. I'm adding it through my Procfile with printf 'asdhfksajhfadf' >> ~/.tipboard/settings-local.py, so I didn't catch that at first 😛. Trying it again.

from tipboard.

csu avatar csu commented on July 18, 2024
Traceback (most recent call last): 
  File "/app/.heroku/python/bin/tipboard", line 9, in <module> 
    load_entry_point('tipboard==1.4.0', 'console_scripts', 'tipboard')() 
  File "/app/.heroku/python/lib/python2.7/site-packages/tipboard/console.py", line 233, in main 
    address=arguments.get('<host>'), port=arguments.get('<port>') 
  File "/app/.heroku/python/lib/python2.7/site-packages/tipboard/console.py", line 158, in runserver 
    populate_key_cache() 
  File "/app/.heroku/python/lib/python2.7/site-packages/tipboard/console.py", line 137, in populate_key_cache 
    for key in client.keys(keys): 
  File "/app/.heroku/python/lib/python2.7/site-packages/redis/client.py", line 637, in keys 
    return self.execute_command('KEYS', pattern) 
  File "/app/.heroku/python/lib/python2.7/site-packages/redis/client.py", line 381, in execute_command 
    connection.send_command(*args) 
  File "/app/.heroku/python/lib/python2.7/site-packages/redis/connection.py", line 299, in send_command 
    self.send_packed_command(self.pack_command(*args)) 
  File "/app/.heroku/python/lib/python2.7/site-packages/redis/connection.py", line 281, in send_packed_command 
    self.connect() 
  File "/app/.heroku/python/lib/python2.7/site-packages/redis/connection.py", line 229, in connect 
Raven is not configured (logging is disabled). Please see the documentation for more information. 
    raise ConnectionError(self._error_message(e)) 
redis.exceptions.ConnectionError: Error -2 connecting <user>:<pass>@<hostname>:<port>. Name or service not known. 

from tipboard.

csu avatar csu commented on July 18, 2024

Also, for REDIS_DB, I have a db name but not a number. Does it accept a string as well? I'm not overwriting it right now.

from tipboard.

xor-xor avatar xor-xor commented on July 18, 2024

String instead of a number? Are you sure? Which version of Redis do you use?

from tipboard.

csu avatar csu commented on July 18, 2024

I've tried using both Redis Cloud and Redis To Go. Redis Cloud uses a string, Redis To Go has databases 1 in the config. Is it 0-indexed?
screen shot 2015-02-05 at 12 32 53 pm

from tipboard.

xliiv avatar xliiv commented on July 18, 2024

We haven't tested Tipboard in environment like yours.
I can't tell if we do it.

However it should work, because Tipboard connects (

client = redis.StrictRedis(**settings.REDIS)
) redis the same way as this recommendation:
https://redislabs.com/python-redis

Redis version from Tipboard requirements is: redis 2.7.5.

from tipboard.

csu avatar csu commented on July 18, 2024

Interesting. Apparently StrictRedis also has a password parameter:

    def __init__(self, host='localhost', port=6379,
                 db=0, password=None, socket_timeout=None,
                 ...

There's also a from_url function that looks like it'd work:

def from_url(cls, url, db=None, **kwargs):
        """
        Return a Redis client object configured from the given URL.
        For example::
            redis://[:password]@localhost:6379/0
            unix://[:password]@/path/to/socket.sock?db=0

from tipboard.

Related Issues (20)

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.