Initial commit: there's still tons of base Phoenix boilerplate to remove, but the...
[tech-radar-editor.git] / config / dev.exs
1 use Mix.Config
2
3 # For development, we disable any cache and enable
4 # debugging and code reloading.
5 #
6 # The watchers configuration can be used to run external
7 # watchers to your application. For example, we use it
8 # with brunch.io to recompile .js and .css sources.
9 config :tech_radar_editor, TechRadarEditor.Endpoint,
10 http: [port: 4000],
11 debug_errors: true,
12 code_reloader: true,
13 check_origin: false,
14 watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin",
15 cd: Path.expand("../", __DIR__)]]
16
17
18 # Watch static and templates for browser reloading.
19 config :tech_radar_editor, TechRadarEditor.Endpoint,
20 live_reload: [
21 patterns: [
22 ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
23 ~r{priv/gettext/.*(po)$},
24 ~r{web/views/.*(ex)$},
25 ~r{web/templates/.*(eex)$}
26 ]
27 ]
28
29 # Do not include metadata nor timestamps in development logs
30 config :logger, :console, format: "[$level] $message\n"
31
32 # Set a higher stacktrace during development. Avoid configuring such
33 # in production as building large stacktraces may be expensive.
34 config :phoenix, :stacktrace_depth, 20
35
36 # Configure your database
37 config :tech_radar_editor, TechRadarEditor.Repo,
38 adapter: Ecto.Adapters.Postgres,
39 username: "postgres",
40 password: "postgres",
41 database: "tech_radar_editor_dev",
42 hostname: "localhost",
43 pool_size: 10