restaurant-review | restaurant review service check the live service http | GraphQL library
kandi X-RAY | restaurant-review Summary
kandi X-RAY | restaurant-review Summary
restaurant review service check the live service http://www.khadok.com
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- This function returns a list of promotions .
- Removes the user s ip address
- Initializes the Gemfile .
- Loads the Rails installed Rails .
- Return the event
- Configures each page in the cache .
- Checks if the client is blocked
- Returns the name of the given address .
- set content
- Convert to a string
restaurant-review Key Features
restaurant-review Examples and Code Snippets
Community Discussions
Trending Discussions on restaurant-review
QUESTION
I deployed my server on Heroku but when I make any requests it returns a "500 Internal Server" error. It runs fine locally though. Could anyone help figure out what's going on?
When I check my logs this is what I'm getting.
...ANSWER
Answered 2021-Jun-08 at 23:10As mentioned here on Heroku help, this indicate that there was a failed authentication attempt to the database, so the connection couldn't be established. This can happen because of different reasons.
In your case i suspect it's something related to not using ssl.
So after taking a look on the code provided in the github repo i noticed you are using knex
and getting the connection string
from .env
Try this :
Just add this
?ssl=true
and append it to the end ofDATABASE_URL
in your.env
file.Edit your server.js (i didn't take a good look at the code so you need to add this
ssl: { rejectUnauthorized: false }
in your connection config) :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install restaurant-review
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
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