Skip to content

Commit

Permalink
Typos and clarification in ":pubsub_server not configured" error (pho…
Browse files Browse the repository at this point in the history
  • Loading branch information
henrik authored May 27, 2020
1 parent d6f5f44 commit 423ee9b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/phoenix/channel/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,15 @@ defmodule Phoenix.Channel.Server do
unless pubsub_server do
raise """
The :pubsub_server was not configured for endpoint #{inspect(socket.endpoint)}.
Make sure to start a PubSub proccess in your application supervision tree:
Make sure to start a PubSub process in your application supervision tree:
{Phoenix.PubSub, [name: YOURAPP.PubSub, adapter: Phoenix.PubSub.PG2]}
And then list it your endpoint config:
And then add it to your endpoint config:
pubsub_server: YOURAPP.PubSub
config :YOURAPP, YOURAPPWeb.Endpoint,
# ...
pubsub_server: YOURAPP.PubSub
"""
end

Expand Down

0 comments on commit 423ee9b

Please sign in to comment.