Skip to content

Commit 33792c7

Browse files
committed
Update environment configuration
1 parent 89f39af commit 33792c7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@
2929

3030
# Ignore master key for decrypting credentials and more.
3131
/config/master.key
32-
node_modules
32+
node_modules
33+
34+
#Ignore env file
35+
.env

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ GEM
276276

277277
PLATFORMS
278278
arm64-darwin-22
279+
arm64-darwin-24
279280
x86_64-linux
280281

281282
DEPENDENCIES

config/database.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,20 @@ default: &default
2020
# For details on connection pooling, see Rails configuration guide
2121
# https://guides.rubyonrails.org/configuring.html#database-pooling
2222
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
23+
username: <%= ENV['POSTGRES_USERNAME'] %>
24+
password: <%= ENV['POSTGRES_PASSWORD'] %>
2325

2426
development:
2527
adapter: postgresql
2628
encoding: unicode
2729
database: expense_tracker_development
2830
pool: 5
29-
username: postgres
30-
password: postgres
3131

3232
test:
3333
adapter: postgresql
3434
encoding: unicode
3535
database: expense_tracker_test
3636
pool: 5
37-
username: postgres
38-
password: postgres
3937

4038
production:
4139
<<: *default

0 commit comments

Comments
 (0)