Skip to content

Commit

Permalink
fix: minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hpopp committed Dec 9, 2024
1 parent 9ae4476 commit 6c94c81
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/Migrating to v2-0-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

## Migrating from v2.0 RCs

See the CHANGELOG for specific breaking changes from each RC. If upgrading from RC3,
See the [CHANGELOG](./CHANGELOG.md) for specific breaking changes from each RC. If upgrading from RC3,
no additional changes are required.

## Migrating from v1.6

1. Update your mix.exs dependencies.

```diff
```elixir
[
+ {:pigeon, "~> 2.0"} # Change this
- {:kadadbra, ~> 0.6.0} # Remove this
{:pigeon, "~> 2.0"} # Change this
{:kadadbra, ~> 0.6.0} # Remove this
]
```

Expand All @@ -23,7 +23,7 @@ Pigeon.

Using APNS as an example, if you have a default push worker configured like this:

```
```elixir
config :pigeon, :apns,
apns_default: %{
cert: "cert.pem",
Expand All @@ -34,15 +34,15 @@ config :pigeon, :apns,

Remove the config and instead define a push worker like this:

```
```elixir
# lib/your_app/apns.ex

defmodule YourApp.APNS do
use Pigeon.Dispatcher, otp_app: :your_app
end
```

```
```elixir
# config.exs

config :your_app, YourApp.APNS,
Expand All @@ -54,7 +54,7 @@ config :your_app, YourApp.APNS,

And add it to your supervision tree.

```
```elixir
defmodule YourApp.Application do
@moduledoc false

Expand All @@ -73,7 +73,7 @@ end

Configuration of the worker can now be passed directly if desired.

```
```elixir
defmodule YourApp.Application do
@moduledoc false

Expand Down

0 comments on commit 6c94c81

Please sign in to comment.