old_contents: import os
  import urlparse
  from redis import Redis
  from rq import Worker, Queue, Connection
  
  listen = ['default']
  
  redis_url = os.getenv('REDISTOGO_URL')
  if not redis_url:
      raise RuntimeError('Set up Redis To Go first.')
  
  urlparse.uses_netloc.append('redis')
  url = urlparse.urlparse(redis_url)
  conn = Redis(host=url.hostname, port=url.port, db=0, password=url.password)
  
  with Connection(conn):
      worker = Worker(map(Queue, listen))
      worker.work()
  
new_contents: import os
  import urlparse
  from redis import Redis
  from rq import Worker, Queue, Connection
  
  listen = ['default']
  
  redis_url = os.getenv('REDIS_URL')
  if not redis_url:
      raise RuntimeError('Set up Redis To Go first.')
  
  urlparse.uses_netloc.append('redis')
  url = urlparse.urlparse(redis_url)
  conn = Redis(host=url.hostname, port=url.port, db=0, password=url.password)
  
  with Connection(conn):
      worker = Worker(map(Queue, listen))
      worker.work()
  
subject: change to redis hobby-dev