Advertisement
mochination

postgres.yml

Oct 22nd, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.51 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.   # For details on connection pooling, see rails configuration guide
  21.   # http://guides.rubyonrails.org/configuring.html#database-pooling
  22.   pool: 5
  23.  
  24. development:
  25.   <<: *default
  26.   database: rask-dev
  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 the same name
  31.   # as the operating system user that initialized the database.
  32.   # MY NOTE: Uncommented, since our machine requires an explicit username. If
  33.   # yours does not, then comment it out.
  34.   username: postgres
  35.  
  36.   # The password associated with the postgres role (username).
  37.   # MY NOTE: Uncommented, since our machine requires an explicit password. If
  38.   # yours does not, then comment it out.
  39.   password: postgres
  40.  
  41.   # Connect on a TCP socket. Omitted by default since the client uses a domain
  42.   # socket that doesn't need configuration. Windows does not have domain
  43.   # sockets, so uncomment these lines.
  44.   host: localhost
  45.  
  46.   # The TCP port the server listens on. Defaults to 5432.
  47.   # If your server runs on a different port number, change accordingly.
  48.   port: 5432
  49.  
  50.   # Schema search path. The server defaults to $user,public.
  51.   #schema_search_path: myapp,sharedapp,public
  52.  
  53.   # Minimum log levels, in increasing order:
  54.   #   debug5, debug4, debug3, debug2, debug1,
  55.   #   log, notice, warning, error, fatal, and panic
  56.   # Defaults to warning.
  57.   #min_messages: notice
  58.  
  59. # Warning: The database defined as "test" will be erased and re-generated from
  60. # your development database when you run "rake".
  61. # Do not set this db to the same as development or production.
  62. test:
  63.   <<: *default
  64.   database: rask-test
  65.  
  66.   # MY NOTE: Added these. See 'development' section above.
  67.   # username: postgres
  68.   # password: postgres
  69.  
  70. # As with config/secrets.yml, you never want to store sensitive information,
  71. # like your database password, in your source code. If your source code is ever
  72. # seen by anyone, they now have access to your database.
  73. #
  74. # Instead, provide the password as a unix environment variable when you boot the
  75. # app.
  76. # Read http://guides.rubyonrails.org/configuring.html#configuring-a-database for
  77. # a full rundown on how to provide these environment variables in a production
  78. # deployment.
  79. #
  80. # On Heroku and other platform providers, you may have a full connection URL
  81. # available as an environment variable. For example:
  82. #
  83. #   DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
  84. #
  85. # You can use this database configuration with:
  86. #
  87. #   production:
  88. #     url: <%= ENV['DATABASE_URL'] %>
  89. #
  90. # MY NOTE: This section is overridden by Heroku, but its still good to keep it
  91. # properly filled, for completeness.
  92. production:
  93.   <<: *default
  94.   database: rask-prod
  95.  
  96.   # MY NOTE: Safely remove these if you don't plan on using them.
  97.   #username: <%= ENV['RAILS_APP_STARTER_KIT_DATABASE_USERNAME'] %>
  98.   #password: <%= ENV['RAILS_APP_STARTER_KIT_DATABASE_PASSWORD'] %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement