forked from shibao/cannery
update to phoenix 1.6
This commit is contained in:
@ -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
3
lib/cannery/mailer.ex
Normal file
@ -0,0 +1,3 @@
|
||||
defmodule Cannery.Mailer do
|
||||
use Swoosh.Mailer, otp_app: :cannery
|
||||
end
|
Reference in New Issue
Block a user