1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/config/test.exs
2018-10-19 10:27:15 -04:00

27 lines
766 B
Elixir

use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :chess, ChessWeb.Endpoint,
check_origin: false,
http: [port: 4001],
server: true
config :chess, :sql_sandbox, true
# Print only warnings and errors during test
config :logger, level: :warn
config :chess, Chess.Mailer,
adapter: Bamboo.TestAdapter
# Configure your database
config :chess, Chess.Repo,
adapter: Ecto.Adapters.Postgres,
database: "chess_test",
hostname: System.get_env("POSTGRES_HOST") || "localhost",
port: System.get_env("POSTGRES_PORT") || "5432",
username: System.get_env("POSTGRES_USER") || System.get_env("USER"),
password: System.get_env("POSTGRES_PASSWORD") || nil,
pool: Ecto.Adapters.SQL.Sandbox