Skip to content

Commit

Permalink
Use database env vars for dev and prod environments
Browse files Browse the repository at this point in the history
  • Loading branch information
bencomp committed Sep 5, 2024
1 parent 745920b commit 997c358
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ default: &default
encoding: utf8mb4
collation: utf8mb4_unicode_ci
pool: 5
username: fromthepage
password: fromthepage
database: <%= ENV['FTP_DATABASE'] %>
username: <%= ENV['FTP_DATABASE_USERNAME'] %>
password: <%= ENV['FTP_DATABASE_PASSWORD'] %>
host: <%= ENV['FTP_DATABASE_HOST'] %>
strict: false
variables:
sql_mode: TRADITIONAL

development:
<<: *default
database: diary_development
# database: diary_development

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
Expand Down

0 comments on commit 997c358

Please sign in to comment.