85 lines
2.7 kB
1
import Config
2
3
# Configure your database
4
# config :blog, Blog.Repo,
5
# username: "robertgrayson",
6
# password: "",
7
# hostname: "localhost",
8
# database: "blog_dev",
9
# stacktrace: true,
10
# show_sensitive_data_on_connection_error: true,
11
# pool_size: 10
12
13
# For development, we disable any cache and enable
14
# debugging and code reloading.
15
#
16
# The watchers configuration can be used to run external
17
# watchers to your application. For example, we can use it
18
# to bundle .js and .css sources.
19
config :blog, BlogWeb.Endpoint,
20
# Binding to loopback ipv4 address prevents access from other machines.
21
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
22
http: [ip: {127, 0, 0, 1}, port: 4000],
23
check_origin: false,
24
code_reloader: true,
25
debug_errors: true,
26
secret_key_base: "IMBNAaP4vkXY2r7/TzP/8LUblCdfDCEdz3g4BapFo1fjxKiI9N7VYeipMc97yPuH",
27
watchers: [
28
esbuild: {Esbuild, :install_and_run, [:blog, ~w(--sourcemap=inline --watch)]},
29
tailwind: {Tailwind, :install_and_run, [:blog, ~w(--watch)]}
30
]
31
32
# ## SSL Support
33
#
34
# In order to use HTTPS in development, a self-signed
35
# certificate can be generated by running the following
36
# Mix task:
37
#
38
# mix phx.gen.cert
39
#
40
# Run `mix help phx.gen.cert` for more information.
41
#
42
# The `http:` config above can be replaced with:
43
#
44
# https: [
45
# port: 4001,
46
# cipher_suite: :strong,
47
# keyfile: "priv/cert/selfsigned_key.pem",
48
# certfile: "priv/cert/selfsigned.pem"
49
# ],
50
#
51
# If desired, both `http:` and `https:` keys can be
52
# configured to run both http and https servers on
53
# different ports.
54
55
# Watch static and templates for browser reloading.
56
config :blog, BlogWeb.Endpoint,
57
live_reload: [
58
patterns: [
59
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
60
~r"priv/gettext/.*(po)$",
61
~r"lib/blog_web/(controllers|live|components)/.*(ex|heex)$"
62
]
63
]
64
65
# Enable dev routes for dashboard and mailbox
66
config :blog, dev_routes: true
67
68
# Do not include metadata nor timestamps in development logs
69
config :logger, :console, format: "[$level] $message\n"
70
71
# Set a higher stacktrace during development. Avoid configuring such
72
# in production as building large stacktraces may be expensive.
73
config :phoenix, :stacktrace_depth, 20
74
75
# Initialize plugs at runtime for faster development compilation
76
config :phoenix, :plug_init_mode, :runtime
77
78
config :phoenix_live_view,
79
# Include HEEx debug annotations as HTML comments in rendered markup
80
debug_heex_annotations: true,
81
# Enable helpful, but potentially expensive runtime checks
82
enable_expensive_runtime_checks: true
83
84
# Disable swoosh api client as it is only required for production adapters.
85
config :swoosh, :api_client, false
86