Add env variable to disable prepared statements (#1293)

lolsob-rspec
Eugen 2017-04-09 05:46:32 +02:00 committed by GitHub
parent 90101a724c
commit 0cec9862db
2 changed files with 5 additions and 0 deletions

View File

@ -63,3 +63,7 @@ SMTP_FROM_ADDRESS=notifications@example.com
# Streaming API integration
# STREAMING_API_BASE_URL=
# Advanced settings
# If you need to use pgBouncer, you need to disable prepared statements:
# PREPARED_STATEMENTS=false

View File

@ -22,3 +22,4 @@ production:
password: <%= ENV['DB_PASS'] || '' %>
host: <%= ENV['DB_HOST'] || 'localhost' %>
port: <%= ENV['DB_PORT'] || 5432 %>
prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>