Update test db configs

This commit is contained in:
Max Wofford 2025-02-22 02:20:10 -05:00
parent 28ae835e32
commit 5c565d796b
2 changed files with 4 additions and 14 deletions

View file

@ -91,7 +91,7 @@ jobs:
env:
RAILS_ENV: test
# REDIS_URL: redis://localhost:6379/0
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
run: bin/rails db:test:prepare test test:system
- name: Keep screenshots from failed system tests

View file

@ -5,21 +5,17 @@
# gem "sqlite3"
#
default: &default
adapter: sqlite3
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
development:
primary:
<<: *default
# database: storage/development.sqlite3
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
url: <%= ENV['DATABASE_URL'] %>
wakatime:
adapter: postgresql
encoding: unicode
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
replica: true
@ -29,10 +25,8 @@ development:
test:
primary:
<<: *default
database: storage/test.sqlite3
url: <%= ENV['TEST_DATABASE_URL'] %>
wakatime:
adapter: postgresql
encoding: unicode
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
replica: true
@ -41,13 +35,9 @@ test:
# is mounted as a persistent Docker volume in config/deploy.yml.
production:
primary:
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
url: <%= ENV['DATABASE_URL'] %>
wakatime:
adapter: postgresql
encoding: unicode
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
replica: true
cache: