use only url from config
All checks were successful
Build and Publish / build-release (push) Successful in 1m27s
All checks were successful
Build and Publish / build-release (push) Successful in 1m27s
This commit is contained in:
@@ -38,19 +38,9 @@ if config_env() == :prod do
|
||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
|
||||
socket_options: maybe_ipv6
|
||||
|
||||
pg_host = System.get_env("PG_HOST") || System.get_env("PG_host")
|
||||
pg_port = System.get_env("PG_PORT") || System.get_env("PG_port", "5432")
|
||||
pg_user = System.get_env("PG_USER") || System.get_env("PG_username")
|
||||
pg_password = System.get_env("PG_PASSWORD") || System.get_env("PG_password")
|
||||
pg_database = System.get_env("PG_DATABASE") || System.get_env("PG_dbname")
|
||||
|
||||
config :policy_service, PolicyService.EventStore,
|
||||
serializer: Commanded.Serialization.JsonSerializer,
|
||||
username: pg_user || raise("PG_USER or PG_username is required"),
|
||||
password: pg_password || raise("PG_PASSWORD or PG_password is required"),
|
||||
database: pg_database || raise("PG_DATABASE or PG_dbname is required"),
|
||||
hostname: pg_host || raise("PG_HOST or PG_host is required"),
|
||||
port: String.to_integer(pg_port || "5432"),
|
||||
url: database_url,
|
||||
pool_size: 5
|
||||
|
||||
secret_key_base =
|
||||
|
||||
Reference in New Issue
Block a user