mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 23:22:53 +00:00
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
# PostgreSQL. Versions 9.3 and up are supported.
|
|
# gem install pg
|
|
#
|
|
# Ensure the pg gem is defined in your Gemfile
|
|
# gem "pg"
|
|
#
|
|
default: &default
|
|
adapter: postgresql
|
|
encoding: unicode
|
|
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
timeout: 5000
|
|
|
|
development:
|
|
<<: *default
|
|
database: cdn_development
|
|
|
|
# Warning: The database defined as "test" will be erased and
|
|
# re-generated from your development database when you run "rake".
|
|
# Do not set this db to the same as development or production.
|
|
test:
|
|
<<: *default
|
|
database: cdn_test
|
|
|
|
production:
|
|
primary:
|
|
<<: *default
|
|
database: <%= ENV["DATABASE_NAME"] || "cdn_production" %>
|
|
host: <%= ENV["DATABASE_HOST"] %>
|
|
user: <%= ENV["DATABASE_USER"] %>
|
|
password: <%= ENV["DATABASE_PASSWORD"] %>
|
|
cache:
|
|
<<: *default
|
|
database: <%= ENV["CACHE_DATABASE_NAME"] || "cdn_cache" %>
|
|
host: <%= ENV["CACHE_DATABASE_HOST"] %>
|
|
user: <%= ENV["CACHE_DATABASE_USER"] %>
|
|
password: <%= ENV["CACHE_DATABASE_PASSWORD"] %>
|
|
migrations_paths: db/cache_migrate
|
|
queue:
|
|
<<: *default
|
|
database: <%= ENV["QUEUE_DATABASE_NAME"] || "cdn_queue" %>
|
|
host: <%= ENV["QUEUE_DATABASE_HOST"] %>
|
|
user: <%= ENV["QUEUE_DATABASE_USER"] %>
|
|
password: <%= ENV["QUEUE_DATABASE_PASSWORD"] %>
|
|
migrations_paths: db/queue_migrate
|
|
cable:
|
|
<<: *default
|
|
database: <%= ENV["CABLE_DATABASE_NAME"] || "cdn_cable" %>
|
|
host: <%= ENV["CABLE_DATABASE_HOST"] %>
|
|
user: <%= ENV["CABLE_DATABASE_USER"] %>
|
|
password: <%= ENV["CABLE_DATABASE_PASSWORD"] %>
|
|
migrations_paths: db/cable_migrate
|