-1

这是我第一次使用 Heroku,所以我真的不知道错误是什么意思。我基本上使用 rails 和 bootstrap 来创建一个站点(只有链接,没有动态特性)。

 ←[36m2013-04-17T21:47:59.413491+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `<top (required)>'
 ←[36m2013-04-17T21:47:59.413491+00:00 app[web.1]:←[0m   from script/rails:6:in `require'
 ←[36m2013-04-17T21:47:59.413491+00:00 app[web.1]:←[0m   from script/rails:6:in `<main>'
 ←[36m2013-04-17T21:47:59.413199+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:59:in `start'
 ←[36m2013-04-17T21:47:59.419753+00:00 app[web.1]:←[0m Exiting
 ←[36m2013-04-17T21:48:00.637162+00:00 heroku[web.1]:←[0m Process exited with status 1
 ←[36m2013-04-17T21:48:00.653135+00:00 heroku[web.1]:←[0m State changed from starting to crashed
 ←[36m2013-04-17T21:48:04.188831+00:00 heroku[web.1]:←[0m Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
 ←[36m2013-04-17T21:48:04.188831+00:00 heroku[web.1]:←[0m Stopping remaining processes with SIGKILL
 ←[36m2013-04-17T21:48:06.652384+00:00 heroku[web.1]:←[0m Process exited with status 137
 ←[33m2013-04-17T21:49:24.968073+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path=/ host=nameless-peak-6062.herokuapp.com fwd="142.151.192.92" dyno= connect= service= status=503 bytes=
 ←[33m2013-04-17T21:49:25.931067+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=nameless-peak-6062.herokuapp.com fwd="142.151.192.92" dyno= connect= service= status=503 bytes=
 ←[33m2013-04-17T21:49:26.628879+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=nameless-peak-6062.herokuapp.com fwd="142.151.192.92" dyno= connect= service= status=503 bytes=
 ←[33m2013-04-17T21:49:27.165454+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=nameless-peak-6062.herokuapp.com fwd="142.151.192.92" dyno= connect= service= status=503 bytes=
 ←[33m2013-04-17T21:49:27.135930+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=nameless-peak-6062.herokuapp.com fwd="142.151.192.92" dyno= connect= service= status=503 bytes=
 ←[33m2013-04-17T21:49:30.949503+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=nameless-peak-6062.herokuapp.com fwd="142.151.192.92" dyno= connect= service= status=503 bytes=
 ←[32m2013-04-17T21:56:36.018416+00:00 heroku[slugc]:←[0m Slug compilation started
 ←[35m2013-04-17T21:57:33.471063+00:00 heroku[api]:←[0m Release v10 created by john.yeung628@gmail.com
 ←[35m2013-04-17T21:57:33.549837+00:00 heroku[api]:←[0m Deploy bf28903 by john.yeung628@gmail.com
 ←[36m2013-04-17T21:57:33.644790+00:00 heroku[web.1]:←[0m State changed from crashed to starting
 ←[32m2013-04-17T21:57:34.367363+00:00 heroku[slugc]:←[0m Slug compilation finished
 ←[36m2013-04-17T21:57:35.689891+00:00 heroku[web.1]:←[0m Starting process with command `bundle exec rails server thin -p 16004 -e $RACK_ENV`
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler/thin.rb:1:in `require': cannot load such file -- thin (LoadError)
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler.rb:20:in `const_get'
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:272:in `server'
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:59:in `start'
 ←[36m2013-04-17T21:57:37.504825+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `tap'
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler/thin.rb:1:in `<top (required)>'
 ←[36m2013-04-17T21:57:37.504825+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `<top (required)>'
 ←[36m2013-04-17T21:57:37.504825+00:00 app[web.1]:←[0m   from script/rails:6:in `<main>'
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler.rb:20:in `block in get'
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler.rb:20:in `get'
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:55:in `block in <top (required)>'
 ←[36m2013-04-17T21:57:37.504825+00:00 app[web.1]:←[0m   from script/rails:6:in `require'
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler.rb:20:in `each'
 ←[36m2013-04-17T21:57:37.504415+00:00 app[web.1]:←[0m   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler.rb:20:in `inject'
 ←[36m2013-04-17T21:57:37.509475+00:00 app[web.1]:←[0m Exiting
4

3 回答 3

2

那是相当难以理解的混乱。但据我所知,真正说明问题的行似乎是这样的:

9.1/gems/rack-1.4.5/lib/rack/handler/thin.rb:1:in `require': cannot load such fi
le -- thin (LoadError)

您是否已添加thin到您的:production组中Gemfile

group :production do
  gem 'thin'
end
于 2013-04-17T22:26:54.610 回答
0

所以在安装 gem 'thin' 之后,还是有问题。显然我config.assets.compile在 config/environments/production.rb 中设置为 false 现在它正在工作:) 非常感谢大家!

于 2013-04-18T19:27:57.337 回答
0

添加到您的 Gemfile:

gem 'thin'
于 2013-04-17T22:26:29.900 回答