Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit aa91521

Browse files
authored
fix(sentry): add fallback build (#445)
* fix(sentry): add fallback build * fix(sentry): upgrade to 8.x
1 parent fb1bbe9 commit aa91521

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/groupher_server_web/endpoint.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
defmodule GroupherServerWeb.Endpoint do
2+
use Sentry.PlugCapture
23
use Phoenix.Endpoint, otp_app: :groupher_server
34

45
socket("/socket", GroupherServerWeb.UserSocket)
@@ -13,6 +14,7 @@ defmodule GroupherServerWeb.Endpoint do
1314
json_decoder: Jason
1415
)
1516

17+
plug(Sentry.PlugContext)
1618
plug(Plug.MethodOverride)
1719
plug(Plug.Head)
1820

lib/groupher_server_web/router.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ defmodule GroupherServerWeb.Router do
22
@moduledoc false
33

44
use GroupherServerWeb, :router
5-
use Plug.ErrorHandler
6-
use Sentry.Plug
75

86
pipeline :api do
97
plug(:accepts, ["json"])

mix.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ defmodule GroupherServer.Mixfile do
135135
"doc.report": ["inch.report"],
136136
lint: ["credo --strict"],
137137
"lint.static": ["dialyzer --format dialyxir"],
138-
"cps.seeds": ["run priv/mock/cps_seeds.exs"]
138+
"cps.seeds": ["run priv/mock/cps_seeds.exs"],
139+
sentry_recompile: ["compile", "deps.compile sentry --force"]
139140
]
140141
end
141142
end

0 commit comments

Comments
 (0)