Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix database URL 🐛 #63

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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