Advertisement
Guest User

Untitled

a guest
Oct 31st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. # PostgreSQL. Versions 8.2 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. host: 127.0.0.1
  21. port: 5432
  22. username: root
  23. password: root
  24. pool: 5
  25. development:
  26. <<: *default
  27. database: fs
  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: ror-template
  33. # The password associated with the postgres role (username).
  34. #password:
  35. # Connect on a TCP socket. Omitted by default since the client uses a
  36. # domain socket that doesn't need configuration. Windows does not have
  37. # domain sockets, so uncomment these lines.
  38. #host: localhost
  39. # The TCP port the server listens on. Defaults to 5432.
  40. # If your server runs on a different port number, change accordingly.
  41. #port: 5432
  42. # Schema search path. The server defaults to $user,public
  43. #schema_search_path: myapp,sharedapp,public
  44. # Minimum log levels, in increasing order:
  45. # debug5, debug4, debug3, debug2, debug1,
  46. # log, notice, warning, error, fatal, and panic
  47. # Defaults to warning.
  48. #min_messages: notice
  49. # Warning: The database defined as "test" will be erased and
  50. # re-generated from your development database when you run "rake".
  51. # Do not set this db to the same as development or production.
  52. test:
  53. <<: *default
  54. database: fs
  55. # As with config/secrets.yml, you never want to store sensitive information,
  56. # like your database password, in your source code. If your source code is
  57. # ever seen by anyone, they now have access to your database.
  58. #
  59. # Instead, provide the password as a unix environment variable when you boot
  60. # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
  61. # for a full rundown on how to provide these environment variables in a
  62. # production deployment.
  63. #
  64. # On Heroku and other platform providers, you may have a full connection URL
  65. # available as an environment variable. For example:
  66. #
  67. # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
  68. #
  69. # You can use this database configuration with:
  70. #
  71. # production:
  72. # url: <%= ENV['DATABASE_URL'] %>
  73. #
  74. production:
  75. <<: *default
  76. database: fs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement