Skip to content

Commit

Permalink
Merge pull request #54025 from jjatinggoyal/trilogy-config
Browse files Browse the repository at this point in the history
Default to the `host` config for db connection for trilogy adapter
  • Loading branch information
kamipo authored Dec 22, 2024
2 parents a76264c + d245892 commit 897e263
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@ default: &default
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: root
password:
<% if database.socket -%>
socket: <%= database.socket %>
<% else -%>
host: <%%= ENV.fetch("DB_HOST") { "<%= database.host %>" } %>
<% end -%>

development:
<<: *default
<% if database.socket -%>
socket: <%= database.socket %>
<% end -%>
database: <%= app_name %>_development

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
<% if database.socket -%>
socket: <%= database.socket %>
<% end -%>
database: <%= app_name %>_test

# As with config/credentials.yml, you never want to store sensitive information,
Expand Down

0 comments on commit 897e263

Please sign in to comment.