Created
June 22, 2015 15:49
-
-
Save psy-q/1cce1a1b50a0ee1a0137 to your computer and use it in GitHub Desktop.
Indent levels wrong
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {# "if ... and" means to test if it's true, not just if it's defined #} | |
| production: | |
| adapter: mysql2 | |
| encoding: utf8 | |
| database: {{ mysql_database }} | |
| username: {{ mysql_user }} | |
| password: {{ mysql_password }} | |
| {% if local_database is defined and local_database -%} | |
| host: localhost | |
| {% else -%} | |
| host: {{ mysql_host }} | |
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| production: | |
| adapter: mysql2 | |
| encoding: utf8 | |
| database: {{ mysql_database }} | |
| username: {{ mysql_user }} | |
| password: {{ mysql_password }} | |
| {# "if ... and" means to test if it's true, not just if it's defined #} | |
| {% if local_database is defined and local_database -%} | |
| host: localhost | |
| {% else -%} | |
| host: {{ mysql_host }} | |
| {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment