From fe3a89687f89c2f640f90a59221698c3327cda9b Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Sat, 2 May 2015 12:56:25 +0530 Subject: Added example of sharing secrets in multiple environments in secrets.yml --- .../generators/rails/app/templates/config/secrets.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'railties/lib/rails/generators') diff --git a/railties/lib/rails/generators/rails/app/templates/config/secrets.yml b/railties/lib/rails/generators/rails/app/templates/config/secrets.yml index b2669a0f79..433133db98 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/secrets.yml +++ b/railties/lib/rails/generators/rails/app/templates/config/secrets.yml @@ -10,6 +10,22 @@ # 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_key: <%= API_KEY %> +# api_secret: <%= API_SECRET %> + +# development: +# <<: *common +# +# test: +# <<: *common +# +# production: +# <<: *common + development: secret_key_base: <%= app_secret %> -- cgit v1.2.3