Advertisement
Guest User

Untitled

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