You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.9 KiB

10 months ago
  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. development:
  22. <<: *default
  23. database: ruby-debug
  24. user: ruby-debug
  25. password: ruby-debug
  26. host: ct1.lxd
  27. # The specified database role being used to connect to PostgreSQL.
  28. # To create additional roles in PostgreSQL see `$ createuser --help`.
  29. # When left blank, PostgreSQL will use the default role. This is
  30. # the same name as the operating system user running Rails.
  31. #username: debug
  32. # The password associated with the PostgreSQL role (username).
  33. #password:
  34. # Connect on a TCP socket. Omitted by default since the client uses a
  35. # domain socket that doesn't need configuration. Windows does not have
  36. # domain sockets, so uncomment these lines.
  37. #host: localhost
  38. # The TCP port the server listens on. Defaults to 5432.
  39. # If your server runs on a different port number, change accordingly.
  40. #port: 5432
  41. # Schema search path. The server defaults to $user,public
  42. #schema_search_path: myapp,sharedapp,public
  43. # Minimum log levels, in increasing order:
  44. # debug5, debug4, debug3, debug2, debug1,
  45. # log, notice, warning, error, fatal, and panic
  46. # Defaults to warning.
  47. #min_messages: notice
  48. # Warning: The database defined as "test" will be erased and
  49. # re-generated from your development database when you run "rake".
  50. # Do not set this db to the same as development or production.
  51. test:
  52. <<: *default
  53. database: debug_test
  54. # As with config/credentials.yml, you never want to store sensitive information,
  55. # like your database password, in your source code. If your source code is
  56. # ever seen by anyone, they now have access to your database.
  57. #
  58. # Instead, provide the password or a full connection URL as an environment
  59. # variable when you boot the app. For example:
  60. #
  61. # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
  62. #
  63. # If the connection URL is provided in the special DATABASE_URL environment
  64. # variable, Rails will automatically merge its configuration values on top of
  65. # the values provided in this file. Alternatively, you can specify a connection
  66. # URL environment variable explicitly:
  67. #
  68. # production:
  69. # url: <%= ENV["MY_APP_DATABASE_URL"] %>
  70. #
  71. # Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
  72. # for a full overview on how database connection configuration can be specified.
  73. #
  74. production:
  75. <<: *default
  76. database: debug_production
  77. username: debug
  78. password: <%= ENV["DEBUG_DATABASE_PASSWORD"] %>