mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Set postgresql poolsize via RAILS_MAX_THREADS
This commit is contained in:
parent
f611e59cb1
commit
1273fc9b1d
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ default: &default
|
||||||
encoding: unicode
|
encoding: unicode
|
||||||
# For details on connection pooling, see rails configuration guide
|
# For details on connection pooling, see rails configuration guide
|
||||||
# http://guides.rubyonrails.org/configuring.html#database-pooling
|
# http://guides.rubyonrails.org/configuring.html#database-pooling
|
||||||
pool: 5
|
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *default
|
<<: *default
|
||||||
|
|
Loading…
Reference in a new issue