Heroku上的Rails MongoDb项目不会启动

时间:2012-04-17 16:56:07

标签: ruby-on-rails mongodb heroku

嗨大家我最近在设置本地环境后从git hub git://github.com/barmstrong/ribbot.git下载了一个开源代码“ribbot”我能够在我的本地机器上运行代码。我决定使用heroku作为我的网络基础解决方案并安装了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'] %>

1 个答案:

答案 0 :(得分:0)

端口11211是memcached(可能)...所以也许你在本地使用memcached并且需要为memcached添加heroku附加组件。