update to phoenix 1.6

This commit is contained in:
2022-01-21 20:36:25 -05:00
parent f9e66d1336
commit 094e214a55
39 changed files with 621 additions and 340 deletions

View File

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

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

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