Make paths written to at runtime and secrets configurable via ENV variables
This commit is contained in:
parent
6ccd23c06a
commit
cbaed036da
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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".
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue