feature/share-libs
yml 84 lines 2.88 KB
Raw
1 # PostgreSQL. Versions 9.3 and up are supported.
2 #
3 # Install the pg driver:
4 # gem install pg
5 # On macOS with Homebrew:
6 # gem install pg -- --with-pg-config=/usr/local/bin/pg_config
7 # On Windows:
8 # gem install pg
9 # Choose the win32 build.
10 # Install PostgreSQL and put its /bin directory on your path.
11 #
12 # Configure Using Gemfile
13 # gem "pg"
14 #
15 default: &default
16 adapter: postgresql
17 encoding: unicode
18 # For details on connection pooling, see Rails configuration guide
19 # https://guides.rubyonrails.org/configuring.html#database-pooling
20 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
21
22 development:
23 <<: *default
24 database: app_development
25
26 # The specified database role being used to connect to PostgreSQL.
27 # To create additional roles in PostgreSQL see `$ createuser --help`.
28 # When left blank, PostgreSQL will use the default role. This is
29 # the same name as the operating system user running Rails.
30 #username: app
31
32 # The password associated with the PostgreSQL role (username).
33 #password:
34
35 # Connect on a TCP socket. Omitted by default since the client uses a
36 # domain socket that doesn't need configuration. Windows does not have
37 # domain sockets, so uncomment these lines.
38 #host: localhost
39
40 # The TCP port the server listens on. Defaults to 5432.
41 # If your server runs on a different port number, change accordingly.
42 #port: 5432
43
44 # Schema search path. The server defaults to $user,public
45 #schema_search_path: myapp,sharedapp,public
46
47 # Minimum log levels, in increasing order:
48 # debug5, debug4, debug3, debug2, debug1,
49 # log, notice, warning, error, fatal, and panic
50 # Defaults to warning.
51 #min_messages: notice
52
53 # Warning: The database defined as "test" will be erased and
54 # re-generated from your development database when you run "rake".
55 # Do not set this db to the same as development or production.
56 test:
57 <<: *default
58 database: app_test
59
60 # As with config/credentials.yml, you never want to store sensitive information,
61 # like your database password, in your source code. If your source code is
62 # ever seen by anyone, they now have access to your database.
63 #
64 # Instead, provide the password or a full connection URL as an environment
65 # variable when you boot the app. For example:
66 #
67 # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
68 #
69 # If the connection URL is provided in the special DATABASE_URL environment
70 # variable, Rails will automatically merge its configuration values on top of
71 # the values provided in this file. Alternatively, you can specify a connection
72 # URL environment variable explicitly:
73 #
74 # production:
75 # url: <%= ENV["MY_APP_DATABASE_URL"] %>
76 #
77 # Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
78 # for a full overview on how database connection configuration can be specified.
79 #
80 production:
81 <<: *default
82 database: app_production
83 username: app
84 password: <%= ENV["APP_DATABASE_PASSWORD"] %>