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 authored and mssola committed Jul 26, 2018
1 parent 58a2c3b commit 7ac882a
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 7ac882a

Please sign in to comment.