mirror of
https://github.com/mitchell/shortnr.git
synced 2025-12-17 05:17:22 +00:00
Impl. config based dep. injection for ets;
- Check for extant url ids - Various minor refactors
This commit is contained in:
parent
fe413d2a5e
commit
50de5607d6
12 changed files with 90 additions and 58 deletions
|
|
@ -1,7 +1,12 @@
|
|||
import Config
|
||||
|
||||
config :service,
|
||||
port: 8080
|
||||
config :shortnr,
|
||||
port: 8080,
|
||||
ets_implementation:
|
||||
(fn
|
||||
:test -> :ets
|
||||
_ -> :dets
|
||||
end).(Mix.env())
|
||||
|
||||
config :logger, :console,
|
||||
format: "date=$date time=$time level=$level$levelpad message=\"$message\" $metadata\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue