Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f0afadc

Browse files
committedJan 6, 2017
Add db file without password
1 parent 8cf46ff commit f0afadc

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
 

‎config/database.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# MySQL. Versions 5.0 and up are supported.
2+
#
3+
# Install the MySQL driver
4+
# gem install mysql2
5+
#
6+
# Ensure the MySQL gem is defined in your Gemfile
7+
# gem 'mysql2'
8+
#
9+
# And be sure to use new-style password hashing:
10+
# http://dev.mysql.com/doc/refman/5.7/en/old-client.html
11+
#
12+
default: &default
13+
adapter: mysql2
14+
encoding: utf8
15+
pool: 5
16+
username: root
17+
password:
18+
19+
development:
20+
<<: *default
21+
database: courses_development
22+
23+
# Warning: The database defined as "test" will be erased and
24+
# re-generated from your development database when you run "rake".
25+
# Do not set this db to the same as development or production.
26+
test:
27+
<<: *default
28+
database: courses_test
29+
30+
# As with config/secrets.yml, you never want to store sensitive information,
31+
# like your database password, in your source code. If your source code is
32+
# ever seen by anyone, they now have access to your database.
33+
#
34+
# Instead, provide the password as a unix environment variable when you boot
35+
# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
36+
# for a full rundown on how to provide these environment variables in a
37+
# production deployment.
38+
#
39+
# On Heroku and other platform providers, you may have a full connection URL
40+
# available as an environment variable. For example:
41+
#
42+
# DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase"
43+
#
44+
# You can use this database configuration with:
45+
#
46+
# production:
47+
# url: <%= ENV['DATABASE_URL'] %>
48+
#
49+
production:
50+
<<: *default
51+
database: courses_production
52+
# username: courses
53+
# password: <%= ENV['COURSES-GITHUB_DATABASE_PASSWORD'] %>

0 commit comments

Comments
 (0)
Please sign in to comment.