Guest User

Untitled

a guest
Jun 7th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. # PostgreSQL. Versions 7.4 and 8.x are supported.
  2. #
  3. # Install the ruby-postgres driver:
  4. # gem install ruby-postgres
  5. # On Mac OS X:
  6. # gem install ruby-postgres -- --include=/usr/local/pgsql
  7. # On Windows:
  8. # gem install ruby-postgres
  9. # Choose the win32 build.
  10. # Install PostgreSQL and put its /bin directory on your path.
  11. development:
  12. <% if RUBY_PLATFORM =~ /java/ %>
  13. adapter: jdbcpostgresql
  14. <% else %>
  15. adapter: postgresql
  16. <% end %>
  17. encoding: unicode
  18. database: trisano_development
  19. username: josh
  20. password: josh
  21. host: localhost
  22. port: 5432
  23.  
  24. # Connect on a TCP socket. Omitted by default since the client uses a
  25. # domain socket that doesn't need configuration. Windows does not have
  26. # domain sockets, so uncomment these lines.
  27. #host: localhost
  28. #port: 5432
  29.  
  30. # Schema search path. The server defaults to $user,public
  31. #schema_search_path: myapp,sharedapp,public
  32.  
  33. # Minimum log levels, in increasing order:
  34. # debug5, debug4, debug3, debug2, debug1,
  35. # log, notice, warning, error, fatal, and panic
  36. # The server defaults to notice.
  37. #min_messages: warning
  38.  
  39. # Warning: The database defined as 'test' will be erased and
  40. # re-generated from your development database when you run 'rake'.
  41. # Do not set this db to the same as development or production.
  42. test:
  43. <% if RUBY_PLATFORM =~ /java/ %>
  44. adapter: jdbcpostgresql
  45. <% else %>
  46. adapter: postgresql
  47. <% end %>
  48. encoding: unicode
  49. database: trisano_test
  50. username: josh
  51. password: josh
  52. host: localhost
  53. port: 5432
  54.  
  55. production:
  56. <% if RUBY_PLATFORM =~ /java/ %>
  57. adapter: jdbcpostgresql
  58. <% else %>
  59. adapter: postgresql
  60. <% end %>
  61. encoding: unicode
  62. database: trisano_production
  63. username: josh
  64. password: josh
  65. host: localhost
  66. port: 5432
Add Comment
Please, Sign In to add comment