Skip to content

Commit

Permalink
Updated secrets.yml template to use YAML anchor/reference syntax
Browse files Browse the repository at this point in the history
 - This is done to show how secrets or configuration settings can be
   shared in multiple environments similar to default database.yml file.
  • Loading branch information
prathamesh-sonpatki committed May 5, 2015
1 parent 57b9ef1 commit 13f620d
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@
# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.

# You can also share common secrets in multiple environments
# using YAML anchor/reference syntax.

# common: &common
# api_secret: api_secret

# development:
# <<: *common
#
# test:
# <<: *common
#
# production:
# api_secret: <%= ENV['API_SECRET'] %>

development:
secret_key_base: <%= app_secret %>

Expand Down

0 comments on commit 13f620d

Please sign in to comment.