Fix pool size default value in config

pull/3024/head
Victor Baranov 5 years ago
parent 9db6d5a160
commit 300d12a8e6
  1. 4
      .circleci/config.yml
  2. 2
      apps/explorer/config/dev.exs
  3. 2
      apps/explorer/config/prod.exs

@ -233,7 +233,7 @@ jobs:
eslint:
docker:
# Ensure .tool-versions matches
- image: circleci/node:12.15.0-browsers-legacy
- image: circleci/node:12.16.1-browsers-legacy
working_directory: ~/app
@ -275,7 +275,7 @@ jobs:
jest:
docker:
# Ensure .tool-versions matches
- image: circleci/node:12.15.0-browsers-legacy
- image: circleci/node:12.16.1-browsers-legacy
working_directory: ~/app

@ -3,7 +3,7 @@ use Mix.Config
# Configure your database
config :explorer, Explorer.Repo,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "50"),
pool_size: String.to_integer(System.get_env("POOL_SIZE", "50")),
timeout: :timer.seconds(80)
config :explorer, Explorer.Tracer, env: "dev", disabled?: true

@ -3,7 +3,7 @@ use Mix.Config
# Configures the database
config :explorer, Explorer.Repo,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
pool_size: String.to_integer(System.get_env("POOL_SIZE", "50")),
ssl: String.equivalent?(System.get_env("ECTO_USE_SSL") || "true", "true"),
prepare: :unnamed,
timeout: :timer.seconds(60)

Loading…
Cancel
Save