use proper names and pool sizes
All checks were successful
Build and Publish / build-release (push) Successful in 1m17s
All checks were successful
Build and Publish / build-release (push) Successful in 1m17s
This commit is contained in:
@@ -30,17 +30,18 @@ if config_env() == :prod do
|
|||||||
For example: ecto://USER:PASS@HOST/DATABASE
|
For example: ecto://USER:PASS@HOST/DATABASE
|
||||||
"""
|
"""
|
||||||
|
|
||||||
config :workload_service, WorkloadService.EventStore,
|
config :customer_service, CustomerService.EventStore,
|
||||||
serializer: Commanded.Serialization.JsonSerializer,
|
serializer: Commanded.Serialization.JsonSerializer,
|
||||||
url: database_url,
|
url: database_url,
|
||||||
schema: "eventstore",
|
schema: "eventstore",
|
||||||
pool_size: String.to_integer(System.get_env("EVENT_STORE_POOL_SIZE") || "10")
|
pool_size: String.to_integer(System.get_env("EVENTSTORE_POOL_SIZE") || "1")
|
||||||
|
|
||||||
maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
|
maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
|
||||||
|
|
||||||
config :customer_service, CustomerService.Repo,
|
config :customer_service, CustomerService.Repo,
|
||||||
url: database_url,
|
url: database_url,
|
||||||
pool_size: 1,
|
pool_size: 1,
|
||||||
|
pool_size: String.to_integer(System.get_env("DATABASE_POOL_SIZE") || "1"),
|
||||||
socket_options: maybe_ipv6
|
socket_options: maybe_ipv6
|
||||||
|
|
||||||
secret_key_base =
|
secret_key_base =
|
||||||
|
|||||||
Reference in New Issue
Block a user