summaryrefslogtreecommitdiff
path: root/src/mem3_app.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem3_app.erl')
-rw-r--r--src/mem3_app.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mem3_app.erl b/src/mem3_app.erl
new file mode 100644
index 00000000..70bf1cf9
--- /dev/null
+++ b/src/mem3_app.erl
@@ -0,0 +1,11 @@
+-module(mem3_app).
+-behaviour(application).
+-export([start/2, stop/1]).
+
+start(_Type, []) ->
+ DbName = couch_config:get("mem3", "db", "dbs"),
+ couch_server:create(list_to_binary(DbName), []),
+ mem3_sup:start_link().
+
+stop([]) ->
+ ok.