Files
ARMStrong.Vision/api/config/database.yml
T
2026-06-08 22:55:30 +04:00

31 lines
831 B
YAML

# PostgreSQL. Versions 9.3 and up are supported.
#
# Install the pg driver:
# gem install pg
# On macOS with Homebrew:
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
#
# Configure Using Gemfile
# gem "pg"
#
default: &default
adapter: postgresql
encoding: unicode
host: <%= ENV.fetch("DATABASE_HOSTNAME") { "localhost" } %>
port: <%= ENV.fetch("DATABASE_PORT") { 5432 }.to_i %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: <%= ENV.fetch("DATABASE_USERNAME") { "postgres" } %>
password: <%= ENV.fetch("DATABASE_PASSWORD") { "postgres" } %>
development:
<<: *default
database: app_development
production:
<<: *default
database: app_production