-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit to add postgres dependency and database configs
- Loading branch information
1 parent
374de00
commit 7b2874a
Showing
5 changed files
with
58 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This file is overwritten by one in alphagov-deployment at deploy time | ||
default: &default | ||
adapter: postgresql | ||
encoding: utf8 | ||
pool: 12 | ||
template: template0 | ||
|
||
development: | ||
<<: *default | ||
database: publisher_development | ||
username: publisher | ||
password: publisher | ||
clients: | ||
default: | ||
uri: <%= "postgresql://postgres@postgres-13/publisher" %> | ||
options: | ||
# use_activesupport_time_zone: true | ||
# belongs_to_required_by_default: false | ||
|
||
test: | ||
<<: *default | ||
clients: | ||
default: | ||
uri: <%= "postgresql://postgres@postgres-13/publisher" %> | ||
options: | ||
read: | ||
mode: :primary | ||
max_pool_size: 1 | ||
options: | ||
# use_activesupport_time_zone: true | ||
# belongs_to_required_by_default: false | ||
|
||
# set these environment variables on your prod server | ||
production: | ||
clients: | ||
default: | ||
uri: <%= ENV['MONGODB_URI'] %> | ||
options: | ||
# use_activesupport_time_zone: true | ||
# belongs_to_required_by_default: false |
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