Comments (13)
Sure. Just overwrite these defaults in your local settings (i.e., ~/.tipboard/settings-local.py
).
from tipboard.
Awesome! Thanks!
from tipboard.
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.
Yes, I would do that. Let us know if that worked.
from tipboard.
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.
Probabbly missing quotes.. .
Try this:
REDIS_HOST = 'redacted-username:[email protected]'
REDIS_PORT = 6379
But change port to yours
from tipboard.
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
from tipboard.
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.
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.
String instead of a number? Are you sure? Which version of Redis do you use?
from tipboard.
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?
from tipboard.
We haven't tested Tipboard in environment like yours.
I can't tell if we do it.
However it should work, because Tipboard connects (
Line 135 in 5bc9231
https://redislabs.com/python-redis
Redis version from Tipboard requirements is: redis 2.7.5.
from tipboard.
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)
- Dependency issue when installing tipboard through pip HOT 2
- Logic api push HOT 1
- Cols before Rows HOT 8
- advanced_plot examples give Error: No data specified HOT 1
- Question : Any resources on how to setup tipboard with nginx? HOT 6
- Internet Explorer 11 error "Unable to get property 'Windows' of undefined or null reference"
- pypi package out of date - new release possible HOT 2
- Issue when creating more than 3 rows HOT 1
- Setup timeout to redis connexion HOT 2
- Error when trying to update a simple tile HOT 1
- How to display photo in the title? HOT 1
- basic setup - Super n00b - help needed HOT 1
- update simple_percentage configuration does not take effect HOT 2
- NameError: name 'execfile' is not defined HOT 3
- Need Some Basic Help Getting Started HOT 5
- Is there a live demo anywhere?
- Light theme? HOT 1
- Can I install on Centos? HOT 1
- Send REST using windows powershell
- Installation failure - NameError: name 'execfile' is not defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tipboard.