Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Make it possible to connect to a database socket
Browse files Browse the repository at this point in the history
Allow to instantiate a connection with a database listening over a unix
socket.

Signed-off-by: Flavio Castelli <[email protected]>
  • Loading branch information
flavio committed Jul 26, 2018
1 parent 10cb892 commit 4b57ad6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ default: &default
<% if ENV["PORTUS_DB_TIMEOUT"] %>
timeout: <%= ENV['PORTUS_DB_TIMEOUT'] %>
<% end %>
<% if ENV['PORTUS_DB_SOCKET'] %>
socket: <%= ENV['PORTUS_DB_SOCKET'] %>
<% end %>

<%= Rails.env.downcase %>:
<<: *default
Expand Down

0 comments on commit 4b57ad6

Please sign in to comment.