blob: 5b8d6e373b3766e7b7f0169a32d0777be9667734 (
plain) (
tree)
|
|
-module(main).
-behaviour(application).
-export([start/2, stop/1]).
start(_StartType, _StartArgs) ->
%% Start Mnesia (or other children) here
io:format("Starting app...~n"),
%% Ensure Mnesia is started
mnesia:start(),
{ok, self()}.
stop(_State) ->
io:format("Stopping app...~n"),
ok.
%% setup() ->
%% mnesia:create_table(attributes, [{type, set},
%% {attributes, [name, value, type]},
%% {ram_copies, [node()]},
%% {index, [name]}
%% ]).
|