From 49e5dfdc2fb68a2cc54e3fc1b36bef03b1575e65 Mon Sep 17 00:00:00 2001 From: benbot Date: Fri, 27 Oct 2023 03:52:02 -0400 Subject: [PATCH] make phoenix happy with sqlite --- config/runtime.exs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index a74032d..80cfad6 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -21,20 +21,10 @@ if System.get_env("PHX_SERVER") do end if config_env() == :prod do - database_url = - System.get_env("DATABASE_URL") || - raise """ - environment variable DATABASE_URL is missing. - For example: ecto://USER:PASS@HOST/DATABASE - """ - maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: [] config :ezcontainer_railway, EzcontainerRailway.Repo, - # ssl: true, - url: database_url, - pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"), - socket_options: maybe_ipv6 + database: "./db/db_prod.sqlite3" # The secret key base is used to sign/encrypt cookies and other secrets. # A default value is used in config/dev.exs and config/test.exs but you