- Add Phoenix.LiveViewTest import to ConnCase to fix warnings - Disable AppSignal in dev and test (only enable in prod) - Explicitly disable clustering in test environment - Fix PacketDistributor to check cluster_enabled before calling LeaderElection - Add Phoenix.CodeReloader listener to mix.exs This prevents tests from trying to call cluster-specific GenServers (ConnectionMonitor, LeaderElection) that don't exist in test mode.
13 lines
295 B
Elixir
13 lines
295 B
Elixir
import Config
|
|
|
|
# Only enable AppSignal in production
|
|
# Use config_env() which is available at runtime
|
|
env = config_env()
|
|
active = env == :prod
|
|
|
|
config :appsignal, :config,
|
|
otp_app: :aprsme,
|
|
name: "aprsme",
|
|
push_api_key: "070601ca-6102-4214-82ad-d0c40df7f6ee",
|
|
env: env,
|
|
active: active
|