无法从Homestead Vagrant框连接到Heroku Postgres数据库

时间:2017-09-13 01:56:53

标签: postgresql heroku vagrant homestead heroku-cli

我正试图从我的本地连接到Heroku postgres数据库。我正在运行一个Laravel Homestead Vagrant框"laravel/homestead": "v2.2.1"

我在流浪汉ssh登录中使用CLI

我可以得到这样的信息:

$ heroku pg:info
=== DATABASE_URL
Plan:        Hobby-dev
Status:      Available
Connections: 0/20
PG Version:  9.6.4
Created:     2017-09-12 05:22 UTC
Data Size:   7.1 MB
Tables:      0
Rows:        0/10000 (In compliance)
Fork/Follow: Unsupported
Rollback:    Unsupported
Add-on:      {Add-on name}

但无法连接,例如

$ heroku pg:psql
--> Connecting to {Add-on name}
psql: could not connect to server: Connection timed out
        Is the server running on host "ec2-184-72-245-58.compute-1.amazonaws.com" (184.72.245.58) and accepting
        TCP/IP connections on port 5432?

感谢任何帮助。感谢

1 个答案:

答案 0 :(得分:0)

我们办公室的5432端口被阻止了。