add proper release and migrations
All checks were successful
Build and Publish / build-release (push) Successful in 1m48s
All checks were successful
Build and Publish / build-release (push) Successful in 1m48s
This commit is contained in:
@@ -52,9 +52,6 @@ if cookie = System.get_env("RELEASE_COOKIE") do
|
||||
config :elixir, :cookie, cookie
|
||||
end
|
||||
|
||||
config :policy_service, PolicyServiceWeb.Endpoint,
|
||||
http: [port: String.to_integer(System.get_env("PORT", "4000"))]
|
||||
|
||||
if config_env() == :prod do
|
||||
database_url =
|
||||
System.get_env("DATABASE_URL") ||
|
||||
@@ -67,13 +64,14 @@ if config_env() == :prod do
|
||||
|
||||
config :policy_service, PolicyService.Repo,
|
||||
url: database_url,
|
||||
pool_size: 1,
|
||||
pool_size: String.to_integer(System.get_env("DATABASE_POOL_SIZE") || "1"),
|
||||
socket_options: maybe_ipv6
|
||||
|
||||
config :policy_service, PolicyService.EventStore,
|
||||
serializer: Commanded.Serialization.JsonSerializer,
|
||||
url: database_url,
|
||||
pool_size: 1
|
||||
schema: "eventstore",
|
||||
pool_size: String.to_integer(System.get_env("EVENTSTORE_POOL_SIZE") || "1")
|
||||
|
||||
secret_key_base =
|
||||
System.get_env("SECRET_KEY_BASE") ||
|
||||
@@ -87,9 +85,10 @@ if config_env() == :prod do
|
||||
config :policy_service, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
|
||||
|
||||
config :policy_service, PolicyServiceWeb.Endpoint,
|
||||
url: [host: host, port: 80, scheme: "http"],
|
||||
url: [host: host, port: String.to_integer(System.get_env("PORT", "4000")), scheme: "http"],
|
||||
http: [
|
||||
ip: {0, 0, 0, 0, 0, 0, 0, 0}
|
||||
ip: {0, 0, 0, 0, 0, 0, 0, 0},
|
||||
port: String.to_integer(System.get_env("PORT", "4000"))
|
||||
],
|
||||
secret_key_base: secret_key_base
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user