Current section
Files
Jump to
Current section
Files
templates/saas/config/dev.exs
import Config
# ! general
# Do not include metadata nor timestamps in development logs.
config :logger, :default_formatter, format: "[$level] $message\n"
# Set a higher stacktrace during development. Avoid configuring such in
# production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20
# Initialize plugs at runtime for faster development compilation.
config :phoenix, :plug_init_mode, :runtime
# Include HEEx debug annotations as HTML comments in rendered markup.
config :phoenix_live_view, :debug_heex_annotations, true
# Enable helpful, but potentially expensive runtime checks.
config :phoenix_live_view, :enable_expensive_runtime_checks, true
# Enable dev routes for dashboard and mailbox.
config :demo_lt, dev_routes: true
# Limit running processes, which is good for:
#
# * inspecting process tree in :observer without too much scrolling
# * ...
config :demo_lt, process_limit: true
# ! cozy_proxy
config :demo_lt, CozyProxy, thousand_island_options: [num_acceptors: 2]
# ! core
# Configure the database.
config :demo_lt, DemoLT.Core.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "combo_lt_core_dev",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10
# Configure the mailer
#
# Use "Local" adapter which stores the emails locally. You can see the emails
# in web browser, at "/dev/mailbox".
config :demo_lt, DemoLT.Core.Mailer, adapter: Swoosh.Adapters.Local
# Disable Swoosh API client as it is only required for production adapters.
config :swoosh, :api_client, false
# ! user_web
# Configure the endpoint.
config :demo_lt, DemoLT.UserWeb.Endpoint,
http: [
transport_options: [num_acceptors: 2]
],
check_origin: false,
code_reloader: true,
debug_errors: true,
secret_key_base: "=========================secret_key_base=========================",
watchers: [
npm: ["run", "dev", cd: Path.expand("../assets/user_web", __DIR__)]
]
# Watch static and templates for browser reloading.
config :demo_lt, DemoLT.UserWeb.Endpoint,
live_reload: [
patterns: [
~r"lib/user_web/(?:router|controllers|layouts|components)(?:/.*)?\.(ex|heex)$",
~r"priv/user_web/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/i18n/gettext/.*(po)$"
]
]
# ! user_api
# Configure the endpoint.
config :demo_lt, DemoLT.UserAPI.Endpoint,
http: [
thousand_island_options: [num_acceptors: 2]
],
check_origin: false,
code_reloader: true,
debug_errors: true,
secret_key_base: "=========================secret_key_base=========================",
watchers: []
# ! admin_web
# Configure the endpoint.
config :demo_lt, DemoLT.AdminWeb.Endpoint,
http: [
thousand_island_options: [num_acceptors: 2]
],
check_origin: false,
code_reloader: true,
debug_errors: true,
secret_key_base: "=========================secret_key_base=========================",
watchers: [
npm: ["run", "dev", cd: Path.expand("../assets/admin_web", __DIR__)]
]
# Watch static and templates for browser reloading.
config :demo_lt, DemoLT.AdminWeb.Endpoint,
live_reload: [
patterns: [
~r"lib/admin_web/(?:router|controllers|layouts|components)(?:/.*)?\.(ex|heex)$",
~r"priv/admin_web/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/i18n/gettext/.*(po)$"
]
]