Permalink
Browse files

Pass Mongo options to BossDB

  • Loading branch information...
1 parent c3fdb9d commit 6bc440a579e7c42735b6d5a0b7c0709b9dde7c61 @evanmiller evanmiller committed Apr 9, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −1 README_DATABASE
  2. +2 −1 src/boss/boss_web_controller.erl
View
@@ -83,7 +83,7 @@ Notes:
3. Open up boss.config and set db_adapter to mnesia
-Using Riak (EXPERIMENTAL)
+Using Riak
-------------------------
Riak is a NoSQL database developed by Basho Technologies.
@@ -65,7 +65,8 @@ init(Config) ->
{ok, Val} -> [{OptName, Val}|Acc];
_ -> Acc
end
- end, [], [db_port, db_host, db_username, db_password, db_database]),
+ end, [], [db_port, db_host, db_username, db_password, db_database,
+ db_replication_set, db_read_mode, db_write_mode]),
DBAdapter = boss_env:get_env(db_adapter, mock),
DBShards = boss_env:get_env(db_shards, []),
CacheEnable = boss_env:get_env(cache_enable, false),

0 comments on commit 6bc440a

Please sign in to comment.