简体   繁体   中英

connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory

I´am deploying my new app to heroku and i can´t figure out how can i solve it. I have this error:

connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?

I tried many things even redo complete database deploy. On localhost everithing is working but if i want to deploy to heroku this appear. Here is github repo to this project: https://github.com/AdrianHorvath8/Developer-search

I have gone through this process before. I would highly recommend following the steps in this article: https://medium.com/@hdsingh13/deploying-django-app-on-heroku-with-postgres-as-backend-b2f3194e8a43 .

It explains exactly what you need to do to deploy your web application to Heroku w/ Django and Postgres.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM