This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Add env variable to disable prepared statements (
#1293
)
closed-social-glitch-2
Eugen
7 years ago
committed by
GitHub
parent
c3e7bac1cc
commit
d5a675099a
2 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
.env.production.sample
+1
-0
config/database.yml
+ 4
- 0
.env.production.sample
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
+ 1
- 0
config/database.yml
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' %>
Write
Preview
Loading…
Cancel
Save