- Add adapter: Bandit.PhoenixAdapter to config.exs and dev.exs - Phoenix reads adapter from app config, not from use macro option - Verified: Bandit 1.11.0 starts successfully on 0.0.0.0:4001 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
22 lines
708 B
Elixir
22 lines
708 B
Elixir
import Config
|
|
|
|
config :centralcloud_my, CentralcloudMy.Endpoint,
|
|
adapter: Bandit.PhoenixAdapter,
|
|
http: [port: 4001],
|
|
secret_key_base: "dev_only_secret_key_base_do_not_use_in_prod_needs_64_chars_minimum_xx",
|
|
code_reloader: true,
|
|
debug_errors: true,
|
|
check_origin: false
|
|
|
|
config :centralcloud_ops, CentralcloudOps.Endpoint,
|
|
http: [port: 4000],
|
|
secret_key_base: "dev_only_ops_secret_key_base_do_not_use_in_prod_needs_64_chars_min_xx",
|
|
code_reloader: true,
|
|
debug_errors: true,
|
|
check_origin: false
|
|
|
|
# Disable Swoosh HTTP client in dev — no real email sending
|
|
config :swoosh, :api_client, false
|
|
|
|
config :logger, :console, format: "[$level] $message\n"
|
|
config :phoenix, :stacktrace_depth, 20
|