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'
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||||
gem 'rails', '~> 6.0.3', '>= 6.0.3.4'
|
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 'sqlite3', '~> 1.4'
|
||||||
|
gem 'pg', '~> 1.4'
|
||||||
# Use Puma as the app server
|
# Use Puma as the app server
|
||||||
gem 'puma', '~> 4.1'
|
gem 'puma', '~> 4.1'
|
||||||
# Use SCSS for stylesheets
|
# Use SCSS for stylesheets
|
||||||
|
|
|
@ -126,6 +126,7 @@ GEM
|
||||||
nokogiri (1.12.5)
|
nokogiri (1.12.5)
|
||||||
mini_portile2 (~> 2.6.1)
|
mini_portile2 (~> 2.6.1)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
|
pg (1.4.3)
|
||||||
public_suffix (4.0.6)
|
public_suffix (4.0.6)
|
||||||
puma (4.3.10)
|
puma (4.3.10)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
|
@ -236,6 +237,7 @@ DEPENDENCIES
|
||||||
jbuilder (~> 2.7)
|
jbuilder (~> 2.7)
|
||||||
listen (~> 3.2)
|
listen (~> 3.2)
|
||||||
mimemagic!
|
mimemagic!
|
||||||
|
pg (~> 1.4)
|
||||||
puma (~> 4.1)
|
puma (~> 4.1)
|
||||||
rails (~> 6.0.3, >= 6.0.3.4)
|
rails (~> 6.0.3, >= 6.0.3.4)
|
||||||
sass-rails (>= 6)
|
sass-rails (>= 6)
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
# gem 'sqlite3'
|
# gem 'sqlite3'
|
||||||
#
|
#
|
||||||
default: &default
|
default: &default
|
||||||
adapter: sqlite3
|
|
||||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *default
|
<<: *default
|
||||||
|
adapter: sqlite3
|
||||||
database: db/development.sqlite3
|
database: db/development.sqlite3
|
||||||
|
|
||||||
# Warning: The database defined as "test" will be erased and
|
# 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.
|
# Do not set this db to the same as development or production.
|
||||||
test:
|
test:
|
||||||
<<: *default
|
<<: *default
|
||||||
|
adapter: sqlite3
|
||||||
database: db/test.sqlite3
|
database: db/test.sqlite3
|
||||||
|
|
||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
|
adapter: sqlite3
|
||||||
database: db/production.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