Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use '<<: *default' in secrets.yml?

In database.yml you can have a default environment and have the other inherit:

development: &default
  adapter: postgresql
  database: dev_development

test: &test
  <<: *default
  database: test_test

production:
  <<: *default
  database: test_production

Can you do this in secrets.yml? Should you?

like image 687
Jeff Avatar asked Jan 08 '15 15:01

Jeff


1 Answers

Yes, you can. It's just the format; you can use it in any YML file.

like image 178
Ashutosh Tiwari Avatar answered Oct 07 '22 13:10

Ashutosh Tiwari