You've already forked docker-erlang-example
mirror of
https://github.com/erlang/docker-erlang-example.git
synced 2025-12-09 13:41:22 +03:00
This commit copies Lukas Larsson's (@garazdawi) and Siri Hansen's (@sirihansen) example from: https://github.com/erlang/docker-erlang-example/tree/minikube-dist
24 lines
485 B
Erlang
24 lines
485 B
Erlang
%%
|
|
%% Copyright (C) 2014 Björn-Egil Dahlberg
|
|
%%
|
|
%% File: dockerwatch_app.erl
|
|
%% Author: Björn-Egil Dahlberg
|
|
%% Created: 2014-09-10
|
|
%%
|
|
|
|
-module(backend_app).
|
|
-behaviour(application).
|
|
|
|
-export([start/2,stop/1]).
|
|
%% API.
|
|
|
|
start(_Type, _Args) ->
|
|
mnesia:change_table_copy_type(schema, node(), disc_copies),
|
|
mnesia:create_table(dockerwatch,
|
|
[{disc_copies,[node()]},
|
|
{ram_copies,[]}]),
|
|
{ok, self()}.
|
|
|
|
stop(_State) ->
|
|
ok.
|