add postgres
This commit is contained in:
parent
83b2b4253b
commit
56669af334
3
Gemfile
3
Gemfile
|
@ -5,8 +5,9 @@ ruby '>= 2.7.5'
|
|||
|
||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||
gem 'rails', '~> 6.0.3', '>= 6.0.3.4'
|
||||
# Use sqlite3 as the database for Active Record
|
||||
# Use pq and sqlite3 as the databases for Active Record
|
||||
gem 'sqlite3', '~> 1.4'
|
||||
gem 'pg', '~> 1.4'
|
||||
# Use Puma as the app server
|
||||
gem 'puma', '~> 4.1'
|
||||
# Use SCSS for stylesheets
|
||||
|
|
|
@ -126,6 +126,7 @@ GEM
|
|||
nokogiri (1.12.5)
|
||||
mini_portile2 (~> 2.6.1)
|
||||
racc (~> 1.4)
|
||||
pg (1.4.3)
|
||||
public_suffix (4.0.6)
|
||||
puma (4.3.10)
|
||||
nio4r (~> 2.0)
|
||||
|
@ -236,6 +237,7 @@ DEPENDENCIES
|
|||
jbuilder (~> 2.7)
|
||||
listen (~> 3.2)
|
||||
mimemagic!
|
||||
pg (~> 1.4)
|
||||
puma (~> 4.1)
|
||||
rails (~> 6.0.3, >= 6.0.3.4)
|
||||
sass-rails (>= 6)
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
# gem 'sqlite3'
|
||||
#
|
||||
default: &default
|
||||
adapter: sqlite3
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
timeout: 5000
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
adapter: sqlite3
|
||||
database: db/development.sqlite3
|
||||
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
|
@ -18,8 +18,18 @@ development:
|
|||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
<<: *default
|
||||
adapter: sqlite3
|
||||
database: db/test.sqlite3
|
||||
|
||||
production:
|
||||
<<: *default
|
||||
adapter: sqlite3
|
||||
database: db/production.sqlite3
|
||||
# adapter: postgresql
|
||||
# encoding: unicode
|
||||
# database: ingang
|
||||
# username: ingang
|
||||
# password: <%= ENV.fetch("DATABASE_PASSWORD") { } %>
|
||||
# host: db.internal.bij1.net
|
||||
# port: 5432
|
||||
|
||||
|
|
Loading…
Reference in New Issue