-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.exs
70 lines (64 loc) · 2.14 KB
/
dev.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with esbuild to recompile .js and .css sources.
config :ex_rss, ExRssWeb.Endpoint,
http: [port: 4000, protocol_options: [max_header_value_length: 8192]],
# TODO
# `secret_key_base` seems to have been removed by Phoenix 1.7 or an earlier
# version.
secret_key_base: String.duplicate("abcdefgh", 8),
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: [
node: ["build.mjs", "--watch", cd: Path.expand("../assets", __DIR__)],
npx: [
"@tailwindcss/cli",
"-i",
"./css/app.css",
"-o",
"../priv/static/assets/app.css",
"--watch",
cd: Path.expand("../assets", __DIR__)
]
]
# Watch static and templates for browser reloading.
config :ex_rss, ExRssWeb.Endpoint,
live_reload: [
web_console_logger: true,
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$},
~r{lib/ex_rss_web/views/.*(ex)$},
~r{lib/ex_rss_web/templates/.*(eex)$},
# TODO
# 2024-12-04
# This pattern is more generic than the one generated by Phoenix 1.7.
#
# This is due to a different folder structure. It is probably a good idea
# to move files around to match the expectations of Phoenix 1.7.
~r{lib/ex_rss_web/.*(heex)$}
]
]
# Enable dev routes for dashboard and mailbox
config :ex_rss, dev_routes: true
# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20
config :phoenix_live_view,
# Include HEEx debug annotations as HTML comments in rendered markup
debug_heex_annotations: true,
# Enable helpful, but potentially expensive runtime checks
enable_expensive_runtime_checks: true
# Configure your database
config :ex_rss, ExRss.Repo,
adapter: Ecto.Adapters.Postgres,
username: "ex_rss",
password: "ex_rss",
database: "ex_rss_dev",
hostname: "localhost",
pool_size: 10