Skip to content

Commit

Permalink
Devcontainers: Update trilogy.yml.tt and mysql.yml.tt
Browse files Browse the repository at this point in the history
When working in a devcontainer, the db host will be in the RAILS_DATABASE_HOST env variable. So we need to update the database.yml to account for this.

Co-authored-by: Rafael Mendonça França <rafael@franca.dev>
  • Loading branch information
andrewn617 and rafaelfranca committed Jan 29, 2024
1 parent 6502c35 commit 1f186ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ default: &default
<% if mysql_socket -%>
socket: <%= mysql_socket %>
<% else -%>
host: localhost
host: <%%= ENV.fetch("RAILS_DATABASE_HOST") { "localhost" } %>
<% end -%>

development:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ default: &default
<% if mysql_socket -%>
socket: <%= mysql_socket %>
<% else -%>
host: localhost
host: <%%= ENV.fetch("RAILS_DATABASE_HOST") { "localhost" } %>
<% end -%>

development:
Expand Down

0 comments on commit 1f186ab

Please sign in to comment.