mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
47 lines
1.1 KiB
Elixir
47 lines
1.1 KiB
Elixir
import 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__)
|
|
]
|
|
],
|
|
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: "$metadata[$level] $message\n"
|
|
|
|
config :phoenix, :stacktrace_depth, 20
|
|
config :phoenix, :plug_init_mode, :runtime
|
|
|
|
config :teslamate, TeslaMate.Repo,
|
|
username: "postgres",
|
|
password: "postgres",
|
|
database: "teslamate_dev",
|
|
hostname: "localhost",
|
|
pool_size: 10
|
|
|
|
config :teslamate, :tesla_auth,
|
|
username: System.get_env("USERNAME"),
|
|
password: System.get_env("PASSWORD")
|
|
|
|
config :teslamate, :mqtt,
|
|
host: "localhost",
|
|
username: "dev",
|
|
password: "dev"
|