Compare commits
2 Commits
c95faa86ed
...
dc52718750
Author | SHA1 | Date | |
---|---|---|---|
dc52718750 | |||
e8f37b91a1 |
3
config/config.exs
Normal file
3
config/config.exs
Normal file
@@ -0,0 +1,3 @@
|
||||
import Config
|
||||
|
||||
import_config "#{config_env()}.exs"
|
0
config/dev.exs
Normal file
0
config/dev.exs
Normal file
0
config/prod.exs
Normal file
0
config/prod.exs
Normal file
4
config/runtime.exs
Normal file
4
config/runtime.exs
Normal file
@@ -0,0 +1,4 @@
|
||||
import Config
|
||||
|
||||
if config_env() == :prod do
|
||||
end
|
0
config/test.exs
Normal file
0
config/test.exs
Normal file
9
lib/application.ex
Normal file
9
lib/application.ex
Normal file
@@ -0,0 +1,9 @@
|
||||
defmodule Exproj.Application do
|
||||
use Application
|
||||
|
||||
@spec start(any(), any()) :: {:error, any()} | {:ok, pid()}
|
||||
def start(_type, _args) do
|
||||
children = []
|
||||
Supervisor.start_link(children, strategy: :one_for_one)
|
||||
end
|
||||
end
|
4
mix.exs
4
mix.exs
@@ -8,7 +8,7 @@ defmodule Exproj.MixProject do
|
||||
elixir: "~> 1.18",
|
||||
start_permanent: Mix.env() == :prod,
|
||||
deps: deps(),
|
||||
aliases: aliases(),
|
||||
aliases: aliases()
|
||||
]
|
||||
end
|
||||
|
||||
@@ -20,6 +20,8 @@ defmodule Exproj.MixProject do
|
||||
def application do
|
||||
[
|
||||
extra_applications: [:logger],
|
||||
env: [],
|
||||
mod: {Exproj.Application, []}
|
||||
]
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user