mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
44 lines
1.0 KiB
Elixir
44 lines
1.0 KiB
Elixir
use Mix.Config
|
|
|
|
config :teslamate, TeslaMateWeb.Endpoint,
|
|
http: [port: 4000],
|
|
debug_errors: true,
|
|
code_reloader: true,
|
|
check_origin: false,
|
|
watchers: [
|
|
node: [
|
|
"node_modules/webpack/bin/webpack.js",
|
|
"--mode",
|
|
"development",
|
|
"--watch-stdin",
|
|
cd: Path.expand("../assets", __DIR__)
|
|
]
|
|
]
|
|
|
|
config :teslamate, TeslaMateWeb.Endpoint,
|
|
live_reload: [
|
|
patterns: [
|
|
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
|
|
~r"priv/gettext/.*(po)$",
|
|
~r"lib/teslamate_web/{live,views}/.*(ex)$",
|
|
~r"lib/teslamate_web/templates/.*(eex)$",
|
|
~r{lib/teslamate_web/live/.*(ex)$}
|
|
]
|
|
]
|
|
|
|
config :logger, :console, format: "[$level] $message\n"
|
|
|
|
config :phoenix, :stacktrace_depth, 20
|
|
config :phoenix, :plug_init_mode, :runtime
|
|
|
|
config :teslamate, TeslaMate.Repo,
|
|
username: "adrian",
|
|
password: "postgres",
|
|
database: "teslamate_dev",
|
|
hostname: "localhost",
|
|
pool_size: 10
|
|
|
|
config :teslamate, :tesla_auth,
|
|
username: System.get_env("USERNAME"),
|
|
password: System.get_env("PASSWORD")
|