heroku迁移,无法连接到服务器:连接被拒绝

时间:2013-01-04 22:23:55

标签: ruby-on-rails ruby heroku

我运行了以下命令:

git remote add mdd2 git@heroku.com:dmstaffing.git
git push mdd2 master

但是当我尝试现在运行

heroku run rake db:migrate --app mdd2

我得到了

rake aborted!
could not connect to server: Connection refused
        Is the server running on host "ec2-184-73-250-226.compute-1.amazonaws.com" and accepting
        TCP/IP connections on port 5632?

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

我也看到了:

g$ heroku open --app mdd2
Opening mdd2... done
durrantm.../mdd$ libprotobuf ERROR third_party/protobuf/src/google/protobuf/message_lite.cc:123] Can't parse message of type "in_memory_url_index.InMemoryURLIndexCacheItem" because it is missing required fields: (cannot determine missing fields for lite message)
^C
durrantm.../mdd$ 

无法连接到服务器:连接被拒绝         服务器是否在主机“ec2-184-73-250-226.compute-1.amazonaws.com”上运行并接受         端口5632上的TCP / IP连接?

1 个答案:

答案 0 :(得分:1)

你有数据库插件吗? https://addons.heroku.com/