oneshot
This commit is contained in:
+14
-5
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user