Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 897b68d

Browse files
committed
Revert "Setup default localhost db config"
This reverts commit 4ebce75.
1 parent d433a4d commit 897b68d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
env:
13+
DATABASE_HOST: localhost
14+
DATABASE_USER: postgres
15+
DATABASE_PASSWORD: password
16+
DATABASE_PORT: 5432
1317
TZ: Asia/Tokyo
1418
SCRIVITO_EMAIL: [email protected]
1519
SCRIVITO_PASSWORD: testpassword

config/database.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ default: &default
2020
# For details on connection pooling, see Rails configuration guide
2121
# http://guides.rubyonrails.org/configuring.html#database-pooling
2222
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
23-
username: <%= ENV.fetch('DATABASE_USER') { 'postgres' } %>
24-
password: <%= ENV.fetch('DATABASE_PASSWORD') { 'password' } %>
25-
host: <%= ENV.fetch('DATABASE_HOST') { 'localhost' } %>
26-
port: <%= ENV.fetch('DATABASE_PORT') { '5432' } %>
23+
username: <%= ENV.fetch('DATABASE_USER') { '' } %>
24+
password: <%= ENV.fetch('DATABASE_PASSWORD') { '' } %>
25+
host: <%= ENV.fetch('DATABASE_HOST') { '' } %>
26+
port: <%= ENV.fetch('DATABASE_PORT') { '' } %>
2727

2828
development:
2929
<<: *default

0 commit comments

Comments
 (0)