mujiburrahmanar97

Untitled

Feb 26th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 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. # # 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") { 3 } %>
  23. # reaping_frequency: 30
  24. # dead_connection_timeout: 30
  25.  
  26. default: &default
  27. adapter: postgresql
  28. encoding: unicode
  29. # For details on connection pooling, see rails configuration guide
  30. # http://guides.rubyonrails.org/configuring.html#database-pooling
  31. pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  32.  
  33. #development:
  34. # <<: *default
  35. # database: splicecore
  36. # username: postgres
  37. # host: db
  38.  
  39. development:
  40. adapter: postgresql
  41. encoding: unicode
  42. database: <%= ENV['SPLICECORE_DATABASE_NAME'] %>
  43. username: <%= ENV['SPLICECORE_DATABASE_USERNAME'] %>
  44. password: <%= ENV['SPLICECORE_DATABASE_PASSWORD'] %>
  45. host: <%= ENV['SPLICECORE_DATABASE_IP'] %>
  46. #url: <%#= ENV.fetch("DB_URL") { 'postgres://dna_user:Vu%25H34%24FkG@dna.cmzpr1s75ou6.us-east-1.rds.amazonaws.com:5432/dna' } %>
  47.  
  48. # The specified database role being used to connect to postgres.
  49. # To create additional roles in postgres see `$ createuser --help`.
  50. # When left blank, postgres will use the default role. This is
  51. # the same name as the operating system user that initialized the database.
  52. # username: splicecore
  53.  
  54. # The password associated with the postgres role (username).
  55. #password:
  56.  
  57. # Connect on a TCP socket. Omitted by default since the client uses a
  58. # domain socket that doesn't need configuration. Windows does not have
  59. # domain sockets, so uncomment these lines.
  60. #host: localhost
  61.  
  62. # The TCP port the server listens on. Defaults to 5432.
  63. # If your server runs on a different port number, change accordingly.
  64. #port: 5432
  65.  
  66. # Schema search path. The server defaults to $user,public
  67. #schema_search_path: myapp,sharedapp,public
  68.  
  69. # Minimum log levels, in increasing order:
  70. # debug5, debug4, debug3, debug2, debug1,
  71. # log, notice, warning, error, fatal, and panic
  72. # Defaults to warning.
  73. #min_messages: notice
  74.  
  75. # Warning: The database defined as "test" will be erased and
  76. # re-generated from your development database when you run "rake".
  77. # Do not set this db to the same as development or production.
  78. test:
  79. <<: *default
  80. database: splicecore_test
  81.  
  82. # As with config/secrets.yml, you never want to store sensitive information,
  83. # like your database password, in your source code. If your source code is
  84. # ever seen by anyone, they now have access to your database.
  85. #
  86. # Instead, provide the password as a unix environment variable when you boot
  87. # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
  88. # for a full rundown on how to provide these environment variables in a
  89. # production deployment.
  90. #
  91. # On Heroku and other platform providers, you may have a full connection URL
  92. # available as an environment variable. For example:
  93. #
  94. # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
  95. #
  96. # You can use this database configuration with:
  97. #
  98. # production:
  99. # url: <%#= ENV['DATABASE_URL'] %>
  100. #
  101. production:
  102. <<: *default
  103. # database: <%#= ENV['SPLICECORE_DATABASE_NAME'] || 'dna' %>
  104. # username: <%#= ENV['SPLICECORE_DATABASE_USERNAME'] || 'dna_user' %>
  105. # password: <%#= ENV['SPLICECORE_DATABASE_PASSWORD'] || 'Vu%H34$FkG' %>
  106. # host: <%#= ENV['SPLICECORE_DATABASE_IP'] || 'dna.cmzpr1s75ou6.us-east-1.rds.amazonaws.com' %>
  107. # url: <%#= ENV['DB_URL_2'] %>
  108. prepared_statements: false
  109. sslmode: require
Add Comment
Please, Sign In to add comment