标签:dev any nbsp postgre apt yaml database yam har
&
用来建立锚点(defaults
),<<
表示合并到当前数据,*
用来引用锚点。
例子:
defaults: &defaults adapter: postgres host: localhost development: database: myapp_development <<: *defaults test: database: myapp_test <<: *defaults
- &showell Steve - Clark - Brian - Oren - *showell
实际使用:
学习链接:http://www.ruanyifeng.com/blog/2016/07/yaml.html?f=tt
标签:dev any nbsp postgre apt yaml database yam har
原文地址:https://www.cnblogs.com/erinchen/p/10619172.html