pg-connection-string | Functions for dealing with a PostgresSQL | Build Tool library
kandi X-RAY | pg-connection-string Summary
kandi X-RAY | pg-connection-string Summary
[Coverage Status] Functions for dealing with a PostgresSQL connection string. parse method taken from [node-postgres] Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com) MIT License.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pg-connection-string
pg-connection-string Key Features
pg-connection-string Examples and Code Snippets
Community Discussions
Trending Discussions on pg-connection-string
QUESTION
Three months ago, I created an Strapi App that has deployed on Heroku, and everything works fine. I used macOS 10.13.6 and node 14.15.4 for the local environment
The configuration of database was created inside a file named database.js which located in rootApp/config/env/production/database.js The following are everything config inside these file (database.js):
...ANSWER
Answered 2021-Mar-15 at 02:03We had the same issue on our Heroku instances and just recently found a fix.
Adding rejectUnauthorized
to the database config appears to work.
config/database.js
QUESTION
I have 2 apps in Heroku with same code version, both using Heroku Postgres with plan free (Hobby). But they were created in different time, some months of difference.
And the problem is, the first work fine, but the second thows error on start
error: no pg_hba.conf entry for host "210.221.51.3", user "byhoyaaasdevfr", database "darcnk9hucbap", SSL off
I read about use SSL, but I want to keep the free plan, and the first app work fine without. This is the connection file content:
...ANSWER
Answered 2021-Mar-14 at 10:28We ran into the same issue today and fixed it by updating our config/env/production/database.js
with the one provided by Strapi for Heroku:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pg-connection-string
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page