mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Update test db configs
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user