Skip to content
This repository has been archived by the owner on Feb 24, 2025. It is now read-only.

Commit

Permalink
Fix problem with Postgrex listener database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortejoso committed Oct 2, 2019
1 parent 7f13a7a commit a5b2f45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/explorer/config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ use Mix.Config

# Configures the database
config :explorer, Explorer.Repo,
url: System.get_env("DATABASE_URL"),
url: System.get_env("DATABASE_URL") || "postgresql://postgres:1234@localhost:5432/blockscout",
username: System.get_env("DATABASE_USER") || "postgres",
password: System.get_env("DATABASE_PASSWORD") || "1234",
database: System.get_env("DATABASE_DB") || "blockscout",
hostname: System.get_env("DATABASE_HOSTNAME") || "localhost",
port: System.get_env("DATABASE_PORT") || "5432",
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
ssl: String.equivalent?(System.get_env("ECTO_USE_SSL") || "true", "true"),
prepare: :unnamed,
Expand Down

0 comments on commit a5b2f45

Please sign in to comment.