Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a default config if shared.yml isn't available #135

Merged
merged 4 commits into from
Dec 27, 2023
Merged

Conversation

dhh
Copy link
Member

@dhh dhh commented Dec 27, 2023

We don't actually need a config in most basic cases. We can just connect to what's in REDIS_URL or a default of redis://127.0.0.1:6379/0.

@dhh dhh merged commit 2c7f41f into main Dec 27, 2023
32 of 34 checks passed
@dhh dhh deleted the use-default-redis-url branch December 27, 2023 05:32
jeremy pushed a commit that referenced this pull request Mar 5, 2024
This fixes an unexpected NoMethodError that experimenting through `bin/console` causes:

```
irb(main):001> Kredis.string "mystring"

/rails/kredis/lib/kredis/connections.rb:15:in `block in configured_for': undefined method `root' for an instance of #<Class:0x0000000108091a60> (NoMethodError)

      if configurator.root.join("config/redis/#{name}.yml").exist?
                     ^^^^^
```

This is a follow-up to #135.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant