Heroku部署 - “我们很抱歉,但出了点问题”

时间:2012-07-17 18:11:02

标签: ruby-on-rails deployment heroku

当我成功将我的应用程序部署到heroku时,会收到错误“我们很遗憾。出了问题”。我是heroku的新手所以我不知道如何解决这个错误,因为它在我的本地计算机上工作正常。有任何修复此错误的建议吗?下面是我“heroku logs”时的日志

2012-07-17T17:55:06+00:00 heroku[slugc]: Slug compilation started
    2012-07-17T17:55:57+00:00 heroku[api]: Add shared-database:5mb add-on by hamsyar
    i22@gmail.com
    2012-07-17T17:55:57+00:00 heroku[api]: Release v2 created by hamsyari22@gmail.co
    m
    2012-07-17T17:55:57+00:00 heroku[api]: Add RAILS_ENV, LANG, PATH, RACK_ENV, GEM_
    PATH config by hamsyari22@gmail.com
    2012-07-17T17:55:57+00:00 heroku[api]: Release v3 created by hamsyari22@gmail.co
    m
    2012-07-17T17:55:57+00:00 heroku[api]: Release v4 created by hamsyari22@gmail.co
    m
    2012-07-17T17:55:57+00:00 heroku[api]: Deploy 702bf2f by hamsyari22@gmail.com
    2012-07-17T17:55:58+00:00 heroku[slugc]: Slug compilation finished
    2012-07-17T17:56:00+00:00 heroku[web.1]: Starting process with command `bundle e
    xec rails server -p 19506`
    2012-07-17T17:56:03+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-st
    yle plugins in vendor/plugins! Support for these plugins will be removed in Rail
    s 4.0. Move them out and bundle them in your Gemfile, or fold them in to your ap
    p as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes f
    or more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been
    -released. (called from <top (required)> at /app/config/environment.rb:5)
    2012-07-17T17:56:03+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-st
    yle plugins in vendor/plugins! Support for these plugins will be removed in Rail
    s 4.0. Move them out and bundle them in your Gemfile, or fold them in to your ap
    p as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes f
    or more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been
    -released. (called from <top (required)> at /app/config/environment.rb:5)
    2012-07-17T17:56:06+00:00 app[web.1]: => Booting WEBrick
    2012-07-17T17:56:06+00:00 app[web.1]: => Rails 3.2.6 application starting in pro
    duction on http://0.0.0.0:19506
    2012-07-17T17:56:06+00:00 app[web.1]: Connecting to database specified by DATABA
    SE_URL
    2012-07-17T17:56:06+00:00 app[web.1]: => Ctrl-C to shutdown server
    2012-07-17T17:56:06+00:00 app[web.1]: => Call with -d to detach
    2012-07-17T17:56:07+00:00 app[web.1]: [2012-07-17 17:56:07] INFO  WEBrick 1.3.1
    2012-07-17T17:56:07+00:00 app[web.1]: [2012-07-17 17:56:07] INFO  ruby 1.9.2 (20
    11-07-09) [x86_64-linux]
    2012-07-17T17:56:07+00:00 app[web.1]: [2012-07-17 17:56:07] INFO  WEBrick::HTTPS
    erver#start: pid=2 port=19506
    2012-07-17T17:56:08+00:00 heroku[web.1]: State changed from starting to up
    2012-07-17T17:56:10+00:00 app[web.1]:
    2012-07-17T17:56:10+00:00 app[web.1]:
    2012-07-17T17:56:10+00:00 app[web.1]: Started GET "/" for 24.39.129.152 at 2012-
    07-17 17:56:10 +0000
    2012-07-17T17:56:10+00:00 app[web.1]: ActionController::RoutingError (No route m
    atches [GET] "/"):
    2012-07-17T17:56:10+00:00 app[web.1]:
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack
    -3.2.6/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack
    -3.2.6/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3
    .2.6/lib/rails/rack/logger.rb:16:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3
    .2.6/lib/rails/rack/logger.rb:26:in `call_app'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack
    -3.2.6/lib/action_dispatch/middleware/request_id.rb:22:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.1
    /lib/rack/methodoverride.rb:21:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesupp
    ort-3.2.6/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.1
    /lib/rack/lock.rb:15:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.1
    /lib/rack/runtime.rb:17:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack
    -3.2.6/lib/action_dispatch/middleware/static.rb:62:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache
    -1.2/lib/rack/cache/context.rb:136:in `forward'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache
    -1.2/lib/rack/cache/context.rb:66:in `call!'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache
    -1.2/lib/rack/cache/context.rb:245:in `fetch'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3
    .2.6/lib/rails/engine.rb:479:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache
    -1.2/lib/rack/cache/context.rb:185:in `lookup'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache
    -1.2/lib/rack/cache/context.rb:51:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3
    .2.6/lib/rails/application.rb:220:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.1
    /lib/rack/handler/webrick.rb:59:in `service'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.1
    /lib/rack/content_length.rb:14:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3
    .2.6/lib/rails/rack/log_tailer.rb:17:in `call'
    2012-07-17T17:56:10+00:00 app[web.1]:   /usr/local/lib/ruby/1.9.1/webrick/server
    .rb:183:in `block in start_thread'
    2012-07-17T17:56:10+00:00 app[web.1]:   /usr/local/lib/ruby/1.9.1/webrick/httpse
    rver.rb:70:in `run'
    2012-07-17T17:56:10+00:00 app[web.1]:   /usr/local/lib/ruby/1.9.1/webrick/httpse
    rver.rb:111:in `service'
    2012-07-17T17:56:10+00:00 app[web.1]:
    2012-07-17T17:56:10+00:00 app[web.1]:
    2012-07-17T17:56:10+00:00 heroku[router]: GET pure-beach-9932.herokuapp.com/ dyn
    o=web.1 queue=0 wait=0ms service=256ms status=404 bytes=728
    2012-07-17T17:56:10+00:00 heroku[rout
    er]: GET pure-beach-9932.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms s
    ervice=10ms status=200 bytes=0
    2012-07-17T17:56:21+00:00 app[web.1]:
    2012-07-17T17:56:21+00:00 app[web.1]:
    2012-07-17T17:56:21+00:00 app[web.1]: Started GET "/users" for 24.39.129.152 at
    2012-07-17 17:56:21 +0000
    2012-07-17T17:56:21+00:00 app[web.1]: Processing by UsersController#index as HTM
    L
    2012-07-17T17:56:21+00:00 app[web.1]:   Rendered users/index.html.erb within lay
    outs/application (124.0ms)
    2012-07-17T17:56:21+00:00 app[web.1]: Completed 500 Internal Server Error in 175
    ms
    2012-07-17T17:56:21+00:00 app[web.1]:
    2012-07-17T17:56:21+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ER
    ROR:  relation "lists" does not exist
    2012-07-17T17:56:21+00:00 app[web.1]: :             SELECT a.attname, format_typ
    e(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
    2012-07-17T17:56:21+00:00 app[web.1]:               FROM pg_attribute a LEFT JOI
    N pg_attrdef d
    2012-07-17T17:56:21+00:00 app[web.1]:                 ON a.attrelid = d.adrelid
    AND a.attnum = d.adnum
    2012-07-17T17:56:21+00:00 app[web.1]:              WHERE a.attrelid = '"lists"':
    :regclass
    2012-07-17T17:56:21+00:00 app[web.1]:                AND a.attnum > 0 AND NOT a.
    attisdropped
    2012-07-17T17:56:21+00:00 app[web.1]: ):
    2012-07-17T17:56:21+00:00 app[web.1]:              ORDER BY a.attnum
    2012-07-17T17:56:21+00:00 app[web.1]:     24:
    2012-07-17T17:56:21+00:00 app[web.1]:     25: <%
    2012-07-17T17:56:21+00:00 app[web.1]:     26: @current_list = ""
    2012-07-17T17:56:21+00:00 app[web.1]:     27: @lists = List.all
    2012-07-17T17:56:21+00:00 app[web.1]:     29: <% @users.each do |user| %>
    2012-07-17T17:56:21+00:00 app[web.1]:     28: %>
    2012-07-17T17:56:21+00:00 app[web.1]:     30:   <tr>
    2012-07-17T17:56:21+00:00 app[web.1]:
    2012-07-17T17:56:21+00:00 app[web.1]:   app/views/users/index.html.erb:27:in `_a
    pp_views_users_index_html_erb___375091412584077637_31682540'
    2012-07-17T17:56:21+00:00 app[web.1]:   app/controllers/users_controller.rb:8:in
     `index'
    2012-07-17T17:56:21+00:00 app[web.1]:
    2012-07-17T17:56:21+00:00 heroku[router]: GET pure-beach-9932.herokuapp.com/user
    s dyno=web.1 queue=0 wait=0ms service=226ms status=500 bytes=643
    2012-07-17T17:56:21+00:00 heroku[router]: GET pure-beach-9932.herokuapp.com/favi
    con.ico dyno=web.1 queue=0 wait=0ms service=6ms status=304 bytes=0

0 个答案:

没有答案
相关问题