farmbot_os/farmbot_ext/config/ecto.exs

28 lines
773 B
Elixir
Raw Normal View History

2018-11-05 09:18:26 -07:00
use Mix.Config
config :farmbot_core,
2019-03-05 11:38:25 -07:00
ecto_repos: [FarmbotCore.Config.Repo, FarmbotCore.Logger.Repo, FarmbotCore.Asset.Repo]
2018-11-05 09:18:26 -07:00
config :farmbot_ext,
2019-03-05 11:38:25 -07:00
ecto_repos: [FarmbotCore.Config.Repo, FarmbotCore.Logger.Repo, FarmbotCore.Asset.Repo]
2018-11-05 09:18:26 -07:00
2019-03-05 11:38:25 -07:00
config :ecto, json_library: FarmbotCore.JSON
2018-11-05 09:18:26 -07:00
2019-03-05 11:38:25 -07:00
config :farmbot_core, FarmbotCore.Config.Repo,
2018-11-05 09:18:26 -07:00
adapter: Sqlite.Ecto2,
loggers: [],
database: "config.#{Mix.env()}.db",
priv: "../farmbot_core/priv/config"
2019-03-05 11:38:25 -07:00
config :farmbot_core, FarmbotCore.Logger.Repo,
2018-11-05 09:18:26 -07:00
adapter: Sqlite.Ecto2,
loggers: [],
database: "logger.#{Mix.env()}.db",
priv: "../farmbot_core/priv/logger"
2019-03-05 11:38:25 -07:00
config :farmbot_core, FarmbotCore.Asset.Repo,
2018-11-05 09:18:26 -07:00
adapter: Sqlite.Ecto2,
loggers: [],
database: "asset.#{Mix.env()}.db",
priv: "../farmbot_core/priv/asset"