diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 13:31:31 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 13:31:31 -0500 |
commit | b5afc0cf9db8d50d1d95fc2c2fe8b451f8825b46 (patch) | |
tree | 95ea3dfc7d0aa75be20f4e6f7cfe099b96805c21 /config/database.yml | |
parent | eb41f85dd46b4d224aa3f3bc2c05d577ac50625f (diff) | |
download | thoughts-b5afc0cf9db8d50d1d95fc2c2fe8b451f8825b46.tar.gz thoughts-b5afc0cf9db8d50d1d95fc2c2fe8b451f8825b46.tar.bz2 thoughts-b5afc0cf9db8d50d1d95fc2c2fe8b451f8825b46.zip |
Moved secret base, Akismet, Sendgrid, and database keys into credentials
Diffstat (limited to 'config/database.yml')
-rw-r--r-- | config/database.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 0000000..78f158b --- /dev/null +++ b/config/database.yml | |||
@@ -0,0 +1,31 @@ | |||
1 | # SQLite version 3.x | ||
2 | # gem install sqlite3 | ||
3 | # | ||
4 | # Ensure the SQLite 3 gem is defined in your Gemfile | ||
5 | # gem 'sqlite3' | ||
6 | # | ||
7 | default: &default | ||
8 | adapter: sqlite3 | ||
9 | pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | ||
10 | timeout: 5000 | ||
11 | |||
12 | development: | ||
13 | <<: *default | ||
14 | database: db/development.sqlite3 | ||
15 | |||
16 | # Warning: The database defined as "test" will be erased and | ||
17 | # re-generated from your development database when you run "rake". | ||
18 | # Do not set this db to the same as development or production. | ||
19 | test: | ||
20 | <<: *default | ||
21 | database: db/test.sqlite3 | ||
22 | |||
23 | production: | ||
24 | adapter: mysql2 | ||
25 | encoding: utf8mb4 | ||
26 | database: thoughts | ||
27 | pool: 5 | ||
28 | username: thoughts | ||
29 | password: <%= Rails.application.credentials.database_password %> | ||
30 | collation: utf8mb4_bin | ||
31 | socket: /var/run/mysqld/mysqld.sock | ||