Skip to content

Commit 5483ba8

Browse files
committed
fix: configure test database to use TCP connection for CI
1 parent bfb4ace commit 5483ba8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config/database.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ development:
1515
test:
1616
primary: &primary_test
1717
<<: *default
18-
database: wit_calendar_backend_test
18+
database: wit_calendar_backend_test<%= ENV['TEST_ENV_NUMBER'] %>
19+
host: <%= ENV.fetch("DB_HOST") { "localhost" } %>
20+
port: <%= ENV.fetch("DB_PORT") { 5432 } %>
1921
queue:
2022
<<: *primary_test
21-
database: wit_calendar_backend_test_queue
23+
database: wit_calendar_backend_test_queue<%= ENV['TEST_ENV_NUMBER'] %>
2224
migrations_paths: db/queue_migrate
2325

2426
staging:

0 commit comments

Comments
 (0)