Advertisement
r08in

Untitled

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