0

嗨,伙计们,我最近从 git hub git://github.com/barmstrong/ribbot.git 下载了一个开源代码“ribbot”,在设置我的本地环境后,我能够让代码在我的本地机器上运行。我决定将 heroku 用于我的 web 基础解决方案并安装了 herokulabs。运行该站点时,我收到以下 heroku 日志错误:

    2012-04-17T16:51:34+00:00 heroku[web.1]: Unidling
    2012-04-17T16:51:34+00:00 heroku[web.1]: State changed from down to created
    2012-04-17T16:51:35+00:00 heroku[web.1]: State changed from created to starting
    2012-04-17T16:51:46+00:00 heroku[web.1]: Starting process with command `bundle exec 2012-04-17T16:51:58+00:00 app[web.1]: [2012-04-17 16:51:58] INFO  WEBrick::HTTPServer#start: pid=1 port=5078
2012-04-17T16:51:58+00:00 app[web.1]: [2012-04-17 16:51:58] INFO  WEBrick 1.3.1
2012-04-17T16:51:58+00:00 app[web.1]: [2012-04-17 16:51:58] INFO  ruby 1.9.2 (2011-07-09) [x86_64-linux]
2012-04-17T16:51:59+00:00 heroku[web.1]: State changed from starting to up
2012-04-17T16:52:01+00:00 app[web.1]: => Call with -d to detach
2012-04-17T16:52:01+00:00 app[web.1]: => Rails 3.1.1 application starting in production on http://0.0.0.0:5078
2012-04-17T16:52:01+00:00 app[web.1]: => Booting WEBrick
2012-04-17T16:52:01+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-04-17T16:52:01+00:00 app[web.1]: localhost:11211 failed (count: 0)
2012-04-17T16:52:01+00:00 app[web.1]: 
2012-04-17T16:52:01+00:00 app[web.1]: 
2012-04-17T16:52:01+00:00 app[web.1]: Started GET "/" for 208.124.140.154 at 2012-04-17 16:52:01 +0000
2012-04-17T16:52:01+00:00 app[web.1]: cache: [GET /] miss
2012-04-17T16:52:01+00:00 app[web.1]: Redirected to http://herokuapp.com/forums
2012-04-17T16:52:01+00:00 app[web.1]:   Processing by PostsController#index as HTML
2012-04-17T16:52:01+00:00 app[web.1]: Completed 302 Found in 9ms
2012-04-17T16:52:01+00:00 heroku[router]: GET quiet-stream-2681.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=703ms status=302 bytes=93

我的 mongoid.yml 看起来像这样:

development:
  host: localhost
  database: ribbot_development

test:
  host: localhost
  database: ribbot_test

production:
  uri: <%= ENV['MONGOLAB_URI'] %>
4

1 回答 1

0

端口 11211 是 memcached(可能)...所以也许您在本地使用 memcached,需要为 memcached 添加 heroku 插件。

于 2012-04-17T17:31:14.167 回答