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
Refactoring: Copy minikube example
This commit copies Lukas Larsson's (@garazdawi) and Siri Hansen's (@sirihansen) example from: https://github.com/erlang/docker-erlang-example/tree/minikube-dist
This commit is contained in:
23
advanced_examples/minikube-dist/backend/src/backend_app.erl
Normal file
23
advanced_examples/minikube-dist/backend/src/backend_app.erl
Normal file
@@ -0,0 +1,23 @@
|
||||
%%
|
||||
%% 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.
|
||||
Reference in New Issue
Block a user