From c6ec33d6e612168e14d77007915a4ea423c55a2e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 1 Sep 2018 16:06:23 +0200 Subject: Move everything to subdirectory --- lib/application.ex | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 lib/application.ex (limited to 'lib/application.ex') diff --git a/lib/application.ex b/lib/application.ex deleted file mode 100644 index 3e3a6ac..0000000 --- a/lib/application.ex +++ /dev/null @@ -1,33 +0,0 @@ -defmodule Shard.Application do - @moduledoc """ - Main Shard application. - - Shard is a prototype peer-to-peer comunication platform with data - synchronization. - """ - - use Application - - def start(_type, _args) do - import Supervisor.Spec, warn: false - - {listen_port, _} = Integer.parse ((System.get_env "PORT") || "4044") - - # Define workers and child supervisors to be supervised - children = [ - Shard.Identity, - { DynamicSupervisor, strategy: :one_for_one, name: Shard.DynamicSupervisor }, - - # Networking - { SNet.TCPServer, listen_port }, - - # Applications & data store - { Shard.Manager, listen_port }, - ] - - # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html - # for other strategies and supported options - opts = [strategy: :one_for_one, name: Shard.Supervisor] - Supervisor.start_link(children, opts) - end -end -- cgit v1.2.3