diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-05-02 12:56:25 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-05-26 16:59:31 +0530 |
commit | fe3a89687f89c2f640f90a59221698c3327cda9b (patch) | |
tree | 9bfb1c71a97b25edd1cde5b0b260661bc56f44e6 /railties/lib | |
parent | 57b9ef1be803a3f4c616df38566b015532e4da5c (diff) | |
download | rails-fe3a89687f89c2f640f90a59221698c3327cda9b.tar.gz rails-fe3a89687f89c2f640f90a59221698c3327cda9b.tar.bz2 rails-fe3a89687f89c2f640f90a59221698c3327cda9b.zip |
Added example of sharing secrets in multiple environments in secrets.yml
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/secrets.yml | 16 |
1 files changed, 16 insertions, 0 deletions
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 %> |