update to 1.6

This commit is contained in:
2022-01-22 13:01:36 -05:00
committed by oliviasculley
parent 3dc255b7c2
commit a2dea04668
37 changed files with 610 additions and 770 deletions

View File

@ -5,19 +5,21 @@ defmodule Lokal.Application do
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Ecto repository
Lokal.Repo,
Lokal.Repo.Migrator,
# Start the Telemetry supervisor
LokalWeb.Telemetry,
# Start the PubSub system
{Phoenix.PubSub, name: Lokal.PubSub},
# Start the Endpoint (http/https)
LokalWeb.Endpoint
LokalWeb.Endpoint,
# Start a worker by calling: Lokal.Worker.start_link(arg)
# {Lokal.Worker, arg}
# Automatically migrate on start
Lokal.Repo.Migrator
]
# See https://hexdocs.pm/elixir/Supervisor.html
@ -28,6 +30,7 @@ defmodule Lokal.Application do
# Tell Phoenix to update the endpoint configuration
# whenever the application is updated.
@impl true
def config_change(changed, _new, removed) do
LokalWeb.Endpoint.config_change(changed, removed)
:ok

3
lib/lokal/mailer.ex Normal file
View File

@ -0,0 +1,3 @@
defmodule Lokal.Mailer do
use Swoosh.Mailer, otp_app: :lokal
end