database.yml 2.9 KB

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