Created
September 8, 2014 17:53
-
-
Save cap10morgan/ac85b8935d9c11e3a2fc to your computer and use it in GitHub Desktop.
database.yml
This file contains 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
defaults: &defaults | |
adapter: jdbc | |
driver: com.mysql.jdbc.Driver | |
encoding: utf8 | |
collation: utf8_unicode_ci | |
reconnect: true | |
autocommit: false | |
pool: 100 | |
database: turbovote_development | |
username: <%= ENV['DB_USERNAME'].present? ? ENV['DB_USERNAME'] : 'root' %> | |
password: <%= ENV['DB_PASSWORD'].present? ? ENV['DB_PASSWORD'] : '' %> | |
url: jdbc:mysql://<%= ENV['DB_1_PORT_3306_TCP_ADDR'].present? ? ENV['DB_1_PORT_3306_TCP_ADDR'] : 'localhost' %>:<%= ENV['DB_1_PORT_3306_TCP_PORT'].present? ? ENV['DB_1_PORT_3306_TCP_PORT'] : '3306' %>/turbovote_development | |
development: | |
<<: *defaults | |
# Warning: The database defined as "test" will be erased and | |
# re-generated from your development database when you run "rake". | |
# Do not set this db to the same as development or production. | |
test: | |
<<: *defaults | |
reconnect: false | |
database: turbovote_test | |
url: jdbc:mysql://<%= ENV['DB_1_PORT_3306_TCP_ADDR'].present? ? ENV['DB_1_PORT_3306_TCP_ADDR'] : 'localhost' %>:<%= ENV['DB_1_PORT_3306_TCP_PORT'].present? ? ENV['DB_1_PORT_3306_TCP_PORT'] : '3306' %>/turbovote_test | |
# This file gets replaced on deploy, so just point at defaults so assets:precompile will work | |
production: | |
<<: *defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment