phx update

This commit is contained in:
2023-11-07 08:52:09 +01:00
parent 8ad54eda1c
commit b2439d7251
974 changed files with 4538 additions and 1120 deletions

View File

@ -5,8 +5,8 @@ config :homepage, Homepage.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
port: 5432,
database: "homepage_dev",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10
@ -19,13 +19,12 @@ config :homepage, Homepage.Repo,
config :homepage, HomepageWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {127, 0, 0, 1}, port: 4000],
http: [ip: {0, 0, 0, 0}, port: 4000],
check_origin: false,
code_reloader: true,
debug_errors: true,
secret_key_base: "aKJ7SFuEOLy0I/zpYQbQZt9HEsRHNTGeNRhd0/RFBoxgWPIsWBtZ2qPilEo5A6yS",
secret_key_base: "HiJgYCX+1XEGvFg6ctjDGqP5aAaFzyCbSmqYVeFhvkLVqCGm94tYQ4m2WExOnMUj",
watchers: [
# Start the esbuild watcher by calling Esbuild.install_and_run(:default, args)
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]},
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]}
]
@ -38,7 +37,6 @@ config :homepage, HomepageWeb.Endpoint,
#
# mix phx.gen.cert
#
# Note that this task requires Erlang/OTP 20 or later.
# Run `mix help phx.gen.cert` for more information.
#
# The `http:` config above can be replaced with:
@ -60,11 +58,13 @@ config :homepage, HomepageWeb.Endpoint,
patterns: [
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/gettext/.*(po)$",
~r"lib/homepage_web/(live|views)/.*(ex)$",
~r"lib/homepage_web/templates/.*(eex)$"
~r"lib/homepage_web/(controllers|live|components)/.*(ex|heex)$"
]
]
# Enable dev routes for dashboard and mailbox
config :homepage, dev_routes: true
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
@ -74,3 +74,6 @@ config :phoenix, :stacktrace_depth, 20
# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime
# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false