This commit is contained in:
2026-07-04 19:27:17 +09:00
parent 34cd5ad2e7
commit ba6a0b2c17
30 changed files with 2935 additions and 247 deletions
+14 -5
View File
@@ -1,15 +1,24 @@
import Config
# Configure your database
# Configure your database.
#
# The connection is read from the DATABASE_URL environment variable (see .env)
# when present, otherwise it falls back to a local Postgres instance.
config :rsh26pool, Rsh26pool.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "rsh26pool_dev",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10
if url = System.get_env("DATABASE_URL") do
config :rsh26pool, Rsh26pool.Repo, url: url
else
config :rsh26pool, Rsh26pool.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "rsh26pool_dev"
end
# For development, we disable any cache and enable
# debugging and code reloading.
#