forked from otwcode/otwarchive
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass the redis configuration to the initializer as a hash read
straight from the yaml file, instead of as a string that must be split on :. This allows us to specify a database index to use, instead of simply falling back to the default 0 database. Update the redis example configuration to match.
- Loading branch information
Antennapedia
committed
Nov 23, 2011
1 parent
70f2e9a
commit 9eb0c0c
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
test: dev.ao3.org:6398 | ||
development: dev.ao3.org:6379 | ||
production: redis.ao3.org:6379 | ||
test: | ||
:host: dev.ao3.org | ||
:port: 6398 | ||
:db: 0 | ||
development: | ||
:host: dev.ao3.org | ||
:port: 6379 | ||
:db: 0 | ||
production: | ||
:host: redis.ao3.org | ||
:port: 6379 | ||
:db: 0 |