teledrive icon indicating copy to clipboard operation
teledrive copied to clipboard

I want to use pgsql from heroku, but there are no variables for host, db name and port in docker env file.

Open starpunjabi opened this issue 2 years ago • 5 comments

how to use db connection like this, so if this variable is set then app must use this for production.

postgres://:@:5432/<db_name>

starpunjabi avatar Mar 18 '22 21:03 starpunjabi

It would be appreciable if you will add steps to deploy application in heroku. Thanks

starpunjabi avatar Mar 18 '22 22:03 starpunjabi

Try to type this with heroku CLI: heroku pg:credentials DATABASE

https://devcenter.heroku.com/articles/connecting-heroku-postgres#external-connections-ingress,

mgilangjanuar avatar Mar 18 '22 23:03 mgilangjanuar

I am not getting what to add in env? any variable? I used heroku pg:cred to get database_url , I already have heroku url in this format: postgres://user:pass@server:5432/<db_name> but which variable i have to use in .env when i have using variables like DB_HOST=ec2XXXXXs.com DB_NAME=d7hg0srltk3us DB_PORT=5432 DB_USERNAME=aupacialotpaoa DB_PASSWORD=be058bec1ae91dba2f903c14ba394d79060ee7ba7898ea1e0a09d56e4ef0974a then still i am getting below error while starting server.

image

please help to solve this issue.

starpunjabi avatar Mar 19 '22 21:03 starpunjabi

Ok, I managed to run it on local server, now when I am trying to login by qr code or by phone, i got success message notification but page keeps remaining on login screen. when i checked console/network. I got below error:

for Request URL: http://localhost:4000/api/v1/users/me/paymentSync

{"error":"Something error","details":{"name":"MaxRetriesPerRequestError","message":"Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details.","stack":"MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20)

Can you please help me to solve this. I already set true for payment disable check in env file.

starpunjabi avatar Mar 20 '22 19:03 starpunjabi

Will fix this soon

mgilangjanuar avatar Mar 21 '22 03:03 mgilangjanuar