diff --git a/config/database.yml b/config/database.yml index ffb95d5c9..37d319404 100644 --- a/config/database.yml +++ b/config/database.yml @@ -18,9 +18,13 @@ test: username: tps_test password: tps_test -production: +production: &production <<: *default database: <%= ENV["DB_DATABASE"] %> host: <%= ENV["DB_HOST"] %> username: <%= ENV["DB_USERNAME"] %> password: <%= ENV["DB_PASSWORD"] %> + +# Alias for production +staging: + <<: *production diff --git a/config/secrets.yml b/config/secrets.yml index a2067225b..0bd2c4b4d 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -74,5 +74,9 @@ test: # Do not keep production secrets in the repository, # instead read values from the environment. -production: +production: &production <<: *defaults + +# Alias for production +staging: + <<: *production