Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  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. user: postgres
  21. password: postgres
  22. # For details on connection pooling, see Rails configuration guide
  23. # http://guides.rubyonrails.org/configuring.html#database-pooling
  24. #needs to be checked in for heroku connection pooling to work properly
  25. pool: <%= ENV["RAILS_MAX_THREADS"] || 5 %>
  26.  
  27. development:
  28. <<: *default
  29. database: maia_development
  30.  
  31. # The specified database role being used to connect to postgres.
  32. # To create additional roles in postgres see `$ createuser --help`.
  33. # When left blank, postgres will use the default role. This is
  34. # the same name as the operating system user that initialized the database.
  35. #username: maia
  36.  
  37. # The password associated with the postgres role (username).
  38. #password:
  39.  
  40. # Connect on a TCP socket. Omitted by default since the client uses a
  41. # domain socket that doesn't need configuration. Windows does not have
  42. # domain sockets, so uncomment these lines.
  43. #host: localhost
  44.  
  45. # The TCP port the server listens on. Defaults to 5432.
  46. # If your server runs on a different port number, change accordingly.
  47. #port: 5432
  48.  
  49. # Schema search path. The server defaults to $user,public
  50. #schema_search_path: myapp,sharedapp,public
  51.  
  52. # Minimum log levels, in increasing order:
  53. # debug5, debug4, debug3, debug2, debug1,
  54. # log, notice, warning, error, fatal, and panic
  55. # Defaults to warning.
  56. #min_messages: notice
  57.  
  58. # Warning: The database defined as "test" will be erased and
  59. # re-generated from your development database when you run "rake".
  60. # Do not set this db to the same as development or production.
  61. test:
  62. <<: *default
  63. database: maia_test
  64.  
  65. # As with config/secrets.yml, you never want to store sensitive information,
  66. # like your database password, in your source code. If your source code is
  67. # ever seen by anyone, they now have access to your database.
  68. #
  69. # Instead, provide the password as a unix environment variable when you boot
  70. # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
  71. # for a full rundown on how to provide these environment variables in a
  72. # production deployment.
  73. #
  74. # On Heroku and other platform providers, you may have a full connection URL
  75. # available as an environment variable. For example:
  76. #
  77. # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
  78. #
  79. # You can use this database configuration with:
  80. #
  81. # production:
  82. # url: <%= ENV['DATABASE_URL'] %>
  83. #
  84. production:
  85. <<: *default
  86. database: maia_production
  87. username: maia
  88. password: <%= ENV['MAIA_DATABASE_PASSWORD'] %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement