Giter VIP home page Giter VIP logo

Comments (6)

LevelbossMike avatar LevelbossMike commented on July 1, 2024

This is actually already supported but not documented. You just have to pass the url as a string instead of a configuration object to the store property of the respective environment.

from ember-deploy-redis.

jamesdixon avatar jamesdixon commented on July 1, 2024

Just to confirm, you pass the connection string directly to store? Also, what is the format of the connection string that's accepted? I've tried a few different versions with no success. Thank you!

from ember-deploy-redis.

backspace avatar backspace commented on July 1, 2024

I tried this: production: {store: 'redis://…'} and it worked, though it produced this error:

Unhandled rejection Error: ERR invalid DB index

from ember-deploy-redis.

lukemelia avatar lukemelia commented on July 1, 2024

@backspace I believe that error is from how then-redis parses the url. Some redis providers include dummy username (after the // and before the :) that you will want to remove or replace with a numeric database index.

from ember-deploy-redis.

backspace avatar backspace commented on July 1, 2024

Ah, thanks. With just redis://password@host:port it failed totally, but it worked with redis://0:password@host:port. I can make a PR to update the README, but I’m new to Redis and don’t understand the implications of specifying a database index like that. When I used a configuration object with its host, port, and password, I didn’t specify an index; was it just choosing 0 by default?

from ember-deploy-redis.

backspace avatar backspace commented on July 1, 2024

Never mind, I see that it does choose 0 by default.

from ember-deploy-redis.

Related Issues (13)

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.