Make paths written to at runtime and secrets configurable via ENV variables

This commit is contained in:
Charlotte Van Petegem 2025-05-21 13:41:33 +02:00
parent 6ccd23c06a
commit cbaed036da
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
3 changed files with 3 additions and 3 deletions

View file

@ -35,6 +35,6 @@ module EntranceExam
# #
# config.time_zone = "Central Time (US & Canada)" # config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras") # config.eager_load_paths << Rails.root.join("extras")
config.entrance_exam_token = "password" config.entrance_exam_token = ENV.fetch("RAILS_ENTRANCE_PASSWORD", "password")
end end
end end

View file

@ -11,7 +11,7 @@ default: &default
development: development:
<<: *default <<: *default
database: storage/development.sqlite3 database: <%= ENV.fetch("RAILS_DATABASE_PATH", "storage/development.sqlite3")
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake". # re-generated from your development database when you run "rake".

View file

@ -4,7 +4,7 @@ test:
local: local:
service: Disk service: Disk
root: <%= Rails.root.join("storage") %> root: <%= ENV.fetch("RAILS_STORAGE_PATH", Rails.root.join("storage")) %>
# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) # Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
# amazon: # amazon: