Files
archived-teslamate/config/dev.exs
2019-04-14 17:41:51 +02:00

49 lines
1.1 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")
config :teslamate, :mqtt,
host: "localhost",
username: "dev",
password: "dev"