Skip to content

Instantly share code, notes, and snippets.

@apprentice1988
Last active December 30, 2015 02:29
Show Gist options
  • Save apprentice1988/7763120 to your computer and use it in GitHub Desktop.
Save apprentice1988/7763120 to your computer and use it in GitHub Desktop.
简化yaml文件,注意 &和*的使用
development: &base
username: root
password: secret
log_level: debugger
database: my_app_development
test:
<<: *base
database: my_app_test
staging:
<<: *base
database: my_app_staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment