Twitter GitHub
changed config/config.exs
 
@@ -14,7 +14,7 @@ config :my_app,
14
14
# Configures the endpoint
15
15
config :my_app, MyAppWeb.Endpoint,
16
16
url: [host: "localhost"],
17
- adapter: Phoenix.Endpoint.Cowboy2Adapter,
17
+ adapter: Bandit.PhoenixAdapter,
18
18
render_errors: [
19
19
formats: [html: MyAppWeb.ErrorHTML, json: MyAppWeb.ErrorJSON],
20
20
layout: false
changed lib/my_app_web/endpoint.ex
 
@@ -7,7 +7,7 @@ defmodule MyAppWeb.Endpoint do
7
7
@session_options [
8
8
store: :cookie,
9
9
key: "_my_app_key",
10
- signing_salt: "Ek40jnMz",
10
+ signing_salt: "PKqtNEO3",
11
11
same_site: "Lax"
12
12
]
13
13
changed mix.exs
 
@@ -50,7 +50,7 @@ defmodule MyApp.MixProject do
50
50
{:gettext, "~> 0.20"},
51
51
{:jason, "~> 1.2"},
52
52
{:dns_cluster, "~> 0.1.1"},
53
- {:plug_cowboy, "~> 2.5"}
53
+ {:bandit, ">= 0.0.0"}
54
54
]
55
55
end
56
56