2012-07-06 107 views
1

的PG数据库时尝试连接到数据库PG我得到了以下错误:无法连接到托管在Heroku

$ heroku pg:psql --app rf1
psql: could not connect to server: Operation timed out Is the server running on host "ec2-184-73-161-119.compute-1.amazonaws.com" and accepting TCP/IP connections on port 5432?

我该如何解决呢? P.s:我在OS X环境中运行并安装了本地pg。

更新:

heroku pg:info --app rf1 
=== SHARED_DATABASE (DATABASE_URL) 
Data Size: 312k 

回答

2

你需要运行Heroku的生产数据库的一个或他们的新发展9.1数据库,以便能够连接到数据库从外面;

https://devcenter.heroku.com/articles/heroku-postgresql https://postgres.heroku.com/blog/past/2012/4/26/heroku_postgres_development_plan/

+0

感谢。我切换到开发计划,它按预期工作! – pierrotlefou 2012-07-06 22:59:44

相关问题