summaryrefslogtreecommitdiff
path: root/src/mem3_app.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-06-30 16:23:38 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 01:22:33 -0400
commit48c8fde34591f782be7af77575eaa02dab8659b3 (patch)
treebb54c0d61a660b9ba019f9b187e901ede7132bfa /src/mem3_app.erl
parent8a09581aa2252f53047fa0e9e95591eaae4556c9 (diff)
standardize mem3 naming. app is horribly broken for now
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.