2013-06-26 38 views
0

我不明白这里发生了什么。本地在本地主机上运行正常但Heroku出错

我用ruby在postgresql数据库的rails上构建了我的网站。

它在本地服务器上运行完美。

但我只是部署到Heroku,我收到这个错误;

仅供参考,我在Heroku的网站上建议了一个procfile。应用程序中发生

应用程序错误

一个错误,并且你的页面无法 服务。请稍后重试。

如果您是应用程序所有者,请查看您的日志以了解详细信息。

2013-06-26T03:02:07.421697+00:00 app[web.1]:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap' 
    2013-06-26T03:02:07.421506+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `get' 
    2013-06-26T03:02:07.421506+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' 
    2013-06-26T03:02:07.421697+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>' 
    2013-06-26T03:02:07.421506+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler/thin.rb:1:in `<top (required)>' 
    2013-06-26T03:02:07.421506+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `inject' 
    2013-06-26T03:02:07.421697+00:00 app[web.1]: from script/rails:6:in `require' 
    2013-06-26T03:02:07.421697+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>' 
    2013-06-26T03:02:07.421697+00:00 app[web.1]: from script/rails:6:in `<main>' 
    2013-06-26T03:02:07.421697+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:272:in `server' 
    2013-06-26T03:02:07.439117+00:00 app[web.1]: Exiting 
    2013-06-26T03:02:07.421506+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `block in get' 
    2013-06-26T03:02:07.421697+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:59:in `start' 
    2013-06-26T03:02:08.750717+00:00 heroku[web.1]: Process exited with status 1 
    2013-06-26T03:02:08.745131+00:00 heroku[web.1]: State changed from starting to crashed 
    2013-06-26T03:12:15.338756+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 47851 -e $RACK_ENV` 
    2013-06-26T03:12:21.836547+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>' 
    2013-06-26T03:12:21.836547+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:59:in `start' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- thin (LoadError) 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `get' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `each' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `const_get' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler/thin.rb:1:in `<top (required)>' 
    2013-06-26T03:12:21.836547+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:272:in `server' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `inject' 
    2013-06-26T03:12:21.836547+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' 
    2013-06-26T03:12:21.836547+00:00 app[web.1]: from script/rails:6:in `require' 
    2013-06-26T03:12:21.836349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `block in get' 
    2013-06-26T03:12:21.836547+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap' 
    2013-06-26T03:12:21.836547+00:00 app[web.1]: from script/rails:6:in `<main>' 
    2013-06-26T03:12:21.865436+00:00 app[web.1]: Exiting 
    2013-06-26T03:12:23.663577+00:00 heroku[web.1]: Process exited with status 1 
    2013-06-26T03:12:23.677322+00:00 heroku[web.1]: State changed from starting to crashed 
    2013-06-26T03:22:43.460462+00:00 heroku[web.1]: State changed from crashed to starting 
    2013-06-26T03:22:48.976685+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 30463 -e $RACK_ENV` 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `each' 
    2013-06-26T03:22:54.591157+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>' 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `block in get' 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- thin (LoadError) 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require' 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `const_get' 
    2013-06-26T03:22:54.591157+00:00 app[web.1]: from script/rails:6:in `<main>' 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `get' 
    2013-06-26T03:22:54.591157+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:272:in `server' 
    2013-06-26T03:22:54.591157+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>' 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler/thin.rb:1:in `<top (required)>' 
    2013-06-26T03:22:54.590985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `inject' 
    2013-06-26T03:22:54.591157+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap' 
    2013-06-26T03:22:54.591157+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:59:in `start' 
    2013-06-26T03:22:54.591157+00:00 app[web.1]: from script/rails:6:in `require' 
    2013-06-26T03:22:54.621142+00:00 app[web.1]: Exiting 
    2013-06-26T03:22:55.841091+00:00 heroku[web.1]: Process exited with status 1 
    2013-06-26T03:22:55.859629+00:00 heroku[web.1]: State changed from starting to crashed 
    2013-06-26T03:32:48.892316+00:00 heroku[web.1]: State changed from crashed to starting 
    2013-06-26T03:32:52.032180+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 58591 -e $RACK_ENV` 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require' 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `const_get' 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- thin (Load 
    Error) 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `inject' 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler/thin.rb:1:in `<top (required)>' 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `block in get' 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `each' 
    2013-06-26T03:32:54.409527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `get' 
    2013-06-26T03:32:54.409728+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:272:in `server' 
    2013-06-26T03:32:54.426193+00:00 app[web.1]: Exiting 
    2013-06-26T03:32:54.409728+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>' 
    2013-06-26T03:32:54.409728+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap' 
    2013-06-26T03:32:54.409728+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:59:in `start' 
    2013-06-26T03:32:54.409728+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>' 
    2013-06-26T03:32:54.409728+00:00 app[web.1]: from script/rails:6:in `require' 
    2013-06-26T03:32:54.409728+00:00 app[web.1]: from script/rails:6:in `<main>' 
    2013-06-26T03:32:55.409933+00:00 heroku[web.1]: Process exited with status 1 
    2013-06-26T03:32:55.424202+00:00 heroku[web.1]: State changed from starting to crashed 
    2013-06-26T03:42:57.889181+00:00 heroku[web.1]: State changed from crashed to starting 
    2013-06-26T03:43:02.239973+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 56589 -e $RACK_ENV` 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler/thin.rb:1:in `<top (required)>' 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `const_get' 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `block in get' 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `each' 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `inject' 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler.rb:20:in `get' 
    2013-06-26T03:43:05.359889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:272:in `server' 
    2013-06-26T03:43:05.359889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:59:in `start' 
    2013-06-26T03:43:05.359889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>' 
    2013-06-26T03:43:05.359889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap' 
    2013-06-26T03:43:05.359889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>' 
    2013-06-26T03:43:05.359889+00:00 app[web.1]: from script/rails:6:in `require' 
    2013-06-26T03:43:05.359889+00:00 app[web.1]: from script/rails:6:in `<main>' 
    2013-06-26T03:43:05.378536+00:00 app[web.1]: Exiting 
    2013-06-26T03:43:06.587742+00:00 heroku[web.1]: Process exited with status 1 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- thin (LoadError) 
    2013-06-26T03:43:05.359693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require' 

回答

4

你在你的Gemfile宝石瘦身?

错误是告诉你不能找到

0

尝试运行heroku logs -n 200打印出从日志的详细线路 - 有时实际误差移出屏幕因截断日志。

1

在你的Gemfile添加红宝石“1.9.3”

的Heroku是提供红宝石2.0为默认值,所以如果你不指定红宝石版本,然后Heroku的将尽力为您的应用程序运行ruby2.0,和它会导致错误。

+0

但是我也有'ruby 2.0.0p195(2013-05-14 revision 40734)[x86_64-darwin11.4.2]'。 –

+0

但您正在运行Rails 3应用程序,对吗? – sunny1304

相关问题