-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mysql for local/test, postgres for remote prod
- Loading branch information
Jason Fine
committed
Nov 10, 2022
1 parent
4b1111b
commit b9a235a
Showing
7 changed files
with
55 additions
and
50 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,38 @@ | ||
default: &default | ||
adapter: postgresql | ||
encoding: unicode | ||
host: <%= ENV.fetch('PGHOST') { 'db' } %> | ||
username: postgres | ||
password: password | ||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | ||
base: &base | ||
adapter: mysql2 | ||
encoding: utf8 | ||
collation: utf8_general_ci | ||
database: fae_dummy | ||
username: root | ||
password: | ||
host: localhost | ||
|
||
development: | ||
<<: *base | ||
host: <%= ENV['DEV_MYSQL_HOST'] || 'localhost' %> | ||
|
||
# test: | ||
# <<: *base | ||
# database: <%= ENV['MYSQL_DATABASE'] || 'fae_dummy_test' %> | ||
# username: <%= ENV['MYSQL_USER'] || 'root' %> | ||
# password: <%= ENV['MYSQL_PASSWORD'] %> | ||
# host: <%= ENV['DEV_MYSQL_HOST'] || 'localhost' %> | ||
test: | ||
<<: *base | ||
database: <%= ENV['MYSQL_DATABASE'] || 'fae_dummy_test' %> | ||
username: <%= ENV['MYSQL_USER'] || 'root' %> | ||
password: <%= ENV['MYSQL_PASSWORD'] %> | ||
host: <%= ENV['DEV_MYSQL_HOST'] || 'localhost' %> | ||
|
||
# ======================================= | ||
|
||
# development: | ||
# <<: *default | ||
# database: fae_engine | ||
remote_development: | ||
<<: *base | ||
database: fae_dev | ||
username: fae | ||
password: sh45&rEDnap | ||
|
||
# test: | ||
# <<: *default | ||
# database: fae_deploy_test_test | ||
stage: | ||
<<: *base | ||
database: fae_stage | ||
username: fae | ||
password: sh45&rEDnap | ||
|
||
production: | ||
url: <%= ENV['DATABASE_URL'] %> | ||
adapter: postgresql | ||
encoding: unicode | ||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | ||
url: <%= ENV['DATABASE_URL'] %> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Datadog.configure do |c| | ||
c.tracing.enabled = Rails.env.production? | ||
c.service = 'FAE Dummy' | ||
c.env = 'production' | ||
end |
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