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