Skip to content

Commit

Permalink
Fix database URL 🐛 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbldev authored Nov 19, 2024
1 parent c71e304 commit 02328b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
10 changes: 1 addition & 9 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ default: &default
# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
<% if ENV["DB_HOST"] %>
host: <%= ENV["DB_HOST"] %>
username: postgres
password: postgres
<% end %>


development:
primary:
Expand Down Expand Up @@ -72,9 +66,7 @@ test:
production:
primary: &primary_production
<<: *default
database: nosia_production
username: nosia
password: <%= ENV["POSTGRES_PASSWORD"] %>
url: <%= ENV["DATABASE_URL"] %>
cache:
<<: *primary_production
database: nosia_production_cache
Expand Down
8 changes: 0 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ services:
- LLM_MODEL=${LLM_MODEL}
- CHECK_MODEL=${CHECK_MODEL}
- EMBEDDING_MODEL=${EMBEDDING_MODEL}
- SMTP_ADDRESS=${SMTP_ADDRESS}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USER_NAME=${SMTP_USER_NAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- LLM_TEMPERATURE=${LLM_TEMPERATURE}
- CHUNK_SIZE=${CHUNK_SIZE}
- CHUNK_OVERLAP=${CHUNK_OVERLAP}
Expand Down Expand Up @@ -80,10 +76,6 @@ services:
- LLM_MODEL=${LLM_MODEL}
- CHECK_MODEL=${CHECK_MODEL}
- EMBEDDING_MODEL=${EMBEDDING_MODEL}
- SMTP_ADDRESS=${SMTP_ADDRESS}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USER_NAME=${SMTP_USER_NAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- LLM_TEMPERATURE=${LLM_TEMPERATURE}
- CHUNK_SIZE=${CHUNK_SIZE}
- CHUNK_OVERLAP=${CHUNK_OVERLAP}
Expand Down

0 comments on commit 02328b3

Please sign in to comment.