updated deps & switched from Mix.Config to Config

This commit is contained in:
Adam Piontek 2022-08-13 06:19:56 -04:00
parent 75eb9aa316
commit 721ba53c15
6 changed files with 64 additions and 71 deletions

View file

@ -5,7 +5,7 @@
# is restricted to this project.
# General application configuration
use Mix.Config
import Config
config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase

View file

@ -1,11 +1,12 @@
use Mix.Config
import Config
# Configure your database
config :shift73k, Shift73k.Repo,
username: "postgres",
password: "postgres",
socket_dir: "/srv/dck/postgres/sock/postgres",
database: "shift73k_dev",
hostname: "localhost",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10

View file

@ -1,4 +1,4 @@
use Mix.Config
import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information

View file

@ -1,4 +1,4 @@
use Mix.Config
import Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
@ -13,7 +13,8 @@ config :shift73k, Shift73k.Repo,
password: "postgres",
database: "shift73k_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10
# We don't run a server during test. If one is required,
# you can enable the server option below.
@ -28,4 +29,4 @@ config :logger, level: :warn
config :shift73k, Shift73k.Mailer, adapter: Bamboo.TestAdapter
# Import secret config
import_config "test.secret.exs"
# import_config "test.secret.exs"