Skip to content

Commit

Permalink
Update heroku.md (phoenixframework#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
bredikhin authored and chrismccord committed Jan 4, 2019
1 parent e0f2069 commit 5286296
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions guides/deployment/heroku.md
Expand Up @@ -200,15 +200,14 @@ config :hello, Hello.Repo,
Finally, we need to decrease the timeout for the websocket transport in `lib/hello_web/endpoint.ex`:

```elixir
defmodule HelloWeb.UserSocket do
use Phoenix.Socket
defmodule HelloWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hello

...

## Transports
socket "/socket", HelloWeb.UserSocket,
websocket: [timeout: 45_000],
longpoll: false

...
end
```

Expand Down Expand Up @@ -271,7 +270,7 @@ Let's commit all our changes:
```
$ git add config/prod.exs
$ git add Procfile
$ git add lib/hello_web/channels/user_socket.ex
$ git add lib/hello_web/endpoint.ex
$ git commit -m "Use production config from Heroku ENV variables and decrease socket timeout"
```

Expand Down

0 comments on commit 5286296

Please sign in to comment.