PostgreSQL并不能运行应用程序

时间:2015-07-15 17:36:18

标签: postgresql heroku

我一直试图通过Heroku工具带在本地运行Web应用程序。但是当我跑步时

foreman start

我收到错误

13:07:53 web.1  | started with pid 17115
13:07:54 web.1  | Listening on 5000
13:07:54 web.1  | Knex:Error Pool2 - error: no pg_hba.conf entry for host "173.162.42.189", user "ktkfcfkvxupgsl", database "d7td7098ob0gcr", SSL off
13:07:54 web.1  | Knex:Error Pool2 - error: no pg_hba.conf entry for host "173.162.42.189", user "ktkfcfkvxupgsl", database "d7td7098ob0gcr", SSL off

所以我使用locate命令在/etc/postgresql/9.3/main/pg_hba.conf中找到这个文件并添加了

host   all    all    0.0.0.0/0   md5

并重新启动/加载数据库服务器,但仍然得到相同的错误。 我在Ubuntu 14.04上使用PostgreSQL 9.3.9,也是pgsql的新手。有人可以帮我找出造成这个问题的原因吗?非常感谢任何帮助!

0 个答案:

没有答案
相关问题