From 4fbafbfa5e07c33e28799d33c3e3c3ee54069421 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Wed, 24 Feb 2021 07:43:56 -0500 Subject: [PATCH] Added secret imports to dev.exs, test.exs --- config/dev.exs | 16 ++++++++++------ config/test.exs | 10 +++++++--- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/config/dev.exs b/config/dev.exs index 6d184c32..9a4988e7 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -1,10 +1,10 @@ use Mix.Config # Configure your database -config :real_estate, RealEstate.Repo, +config :bones73k, Bones73k.Repo, username: "postgres", password: "postgres", - database: "real_estate_dev", + database: "bones73k_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 @@ -15,7 +15,7 @@ config :real_estate, RealEstate.Repo, # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with webpack to recompile .js and .css sources. -config :real_estate, RealEstateWeb.Endpoint, +config :bones73k, Bones73kWeb.Endpoint, http: [port: 4000], debug_errors: true, code_reloader: true, @@ -55,13 +55,13 @@ config :real_estate, RealEstateWeb.Endpoint, # different ports. # Watch static and templates for browser reloading. -config :real_estate, RealEstateWeb.Endpoint, +config :bones73k, Bones73kWeb.Endpoint, live_reload: [ patterns: [ ~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$", ~r"priv/gettext/.*(po)$", - ~r"lib/real_estate_web/(live|views)/.*(ex)$", - ~r"lib/real_estate_web/templates/.*(eex)$" + ~r"lib/bones73k_web/(live|views)/.*(ex)$", + ~r"lib/bones73k_web/templates/.*(eex)$" ] ] @@ -74,3 +74,7 @@ config :phoenix, :stacktrace_depth, 20 # Initialize plugs at runtime for faster development compilation config :phoenix, :plug_init_mode, :runtime + +# Import secret config +import_config "dev.secret.exs" + diff --git a/config/test.exs b/config/test.exs index f5a840f7..4f3c19f8 100644 --- a/config/test.exs +++ b/config/test.exs @@ -8,18 +8,22 @@ config :bcrypt_elixir, :log_rounds, 1 # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. -config :real_estate, RealEstate.Repo, +config :bones73k, Bones73k.Repo, username: "postgres", password: "postgres", - database: "real_estate_test#{System.get_env("MIX_TEST_PARTITION")}", + database: "bones73k_test#{System.get_env("MIX_TEST_PARTITION")}", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox # We don't run a server during test. If one is required, # you can enable the server option below. -config :real_estate, RealEstateWeb.Endpoint, +config :bones73k, Bones73kWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn + +# Import secret config +import_config "test.secret.exs" +