Skip to content

Commit

Permalink
fix: Update database config for production
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjust committed Jul 29, 2024
1 parent d6f2959 commit 5b8630d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ default: &default
adapter: mysql2
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
encoding: utf8mb4
collation: utf8mb4_general_ci

development:
<<: *default
Expand All @@ -25,4 +27,7 @@ test:

production:
<<: *default
database: db/production.sqlite3
database: <%= ENV['DB_NAME'] %>
username: <%= ENV['DB_USERNAME'] %>
password: <%= ENV['DB_PASSWORD'] %>
host: <%= ENV['DB_HOSTNAME'] %>

0 comments on commit 5b8630d

Please sign in to comment.