Skip to content

Commit

Permalink
[#245] fixed the blog example
Browse files Browse the repository at this point in the history
  • Loading branch information
ferigis committed Aug 24, 2016
1 parent 3953594 commit 6329d43
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 906 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ erl_crash.dump
sumo_db.d
_build/
rebar.lock
*_plt
*_plt
.idea/
*.iml
6 changes: 0 additions & 6 deletions examples/blog/Makefile

This file was deleted.

58 changes: 18 additions & 40 deletions examples/blog/blog.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,29 @@
{error_logger_mf_maxfiles, 5} % 5 files max
]},
{sumo_db, [
{wpool_opts, [{overrun_warning, 100}]},
{log_queries, true},
{query_timeout, 30000},
{storage_backends, [
{mongo_backend, sumo_backend_mongo, [
{username, "root"},
{password, "pass"},
{host, "127.0.0.1"},
{port, 27017},
{database, "blog"},
{poolsize, 5}
]},
{mysql_backend, sumo_backend_mysql, [
{username, "root"},
{password, ""},
{host, "127.0.0.1"},
{port, 3306},
{database, "blog"},
{poolsize, 5}
]}
{sumo_blog_backend_mnesia, sumo_backend_mnesia, []}
]},
{stores, [
{mysql, sumo_store_mysql, [
{storage_backend, mysql_backend},
{workers, 5}
]},
{mongo, sumo_store_mongo, [
{storage_backend, mongo_backend},
{workers, 5}
{sumo_test_mnesia, sumo_store_mnesia, [
{workers, 10},
{ram_copies, here},
{majority, false}
]}
]},
{events, [
{blog_post, my_event_bus}
]},
{docs, [
{blog_post, mysql},
{blog_author, mysql},
{blog_reader, mongo},
{blog_vote, mongo}
]}
{post, sumo_test_mnesia, #{module => blog_post}},
{author, sumo_test_mnesia, #{module => blog_author}},
{reader, sumo_test_mnesia, #{module => blog_reader}},
{vote, sumo_test_mnesia, #{module => blog_vote}}
]},
{lager, [
{handlers, [
{lager_console_backend, debug},
{lager_file_backend, [
{"log/lager_error.log", debug, 10485760, "$D0", 5},
{"log/lager_console.log", debug, 10485760, "$D0", 5}
]}
]}
{events, [
{post, blog_event_handler}
]}
].
]},
{sasl, [
{sasl_error_logger, false}
]}].
Loading

0 comments on commit 6329d43

Please sign in to comment.