Skip to content

Commit

Permalink
PR Feedback:
Browse files Browse the repository at this point in the history
  • Loading branch information
avinhurry committed Sep 3, 2024
1 parent 268c4a0 commit 4c12fce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "active_support/core_ext/integer/time"

Rails.application.configure do
config.x.read_only_database_url = ENV.fetch('DATABASE_URL', nil)
# Settings specified here will take precedence over those in config/application.rb.

# Code is not reloaded between requests.
Expand Down
4 changes: 4 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
config.eager_load = ENV["CI"].present?

# Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = true

config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{1.hour.to_i}" }

# Show full error reports and disable caching.
Expand Down Expand Up @@ -74,4 +76,6 @@

# Raise error when a before_action's only/except options reference missing actions.
config.action_controller.raise_on_missing_callback_actions = true

config.x.read_only_database_url = "postgres://localhost/#{ENV.fetch('DB_DATABASE', 'manage_courses_backend_test')}"
end

0 comments on commit 4c12fce

Please sign in to comment.