Skip to content

Commit

Permalink
examples/tabbedchat: Add configuration for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Aug 3, 2012
1 parent df5dde8 commit 8390e4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/tabbedchat/tabbedchat/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def get_options():
ap.add_argument('--log-file', metavar="FILE",
help="Log file name",
dest="log_file", default="./run/python.log")

ap.add_argument('--redis-socket', metavar="FILE",
help="Redis socket (only unix sockets supported)",
dest="redis_sock", default='./run/redis.sock')
return ap

def main():
Expand All @@ -42,7 +44,7 @@ def main():
connect=options.output_connect,
bind=options.output_bind,
)
lp.add_redis('redis', socket='./run/redis.sock')
lp.add_redis('redis', socket=options.redis_sock)
lp.add_service('auth', auth.Service(),
connect=options.auth_connect,
bind=options.auth_bind,
Expand Down

0 comments on commit 8390e4d

Please sign in to comment.