我試圖將我的Rails應用程序部署到Heroku。到目前爲止,我所做的所有工作都是創建rails應用程序,安裝捆綁包並將其提交給bitbucket。下一步是部署到Heroku並打印Hello World以確認其工作。我得到這個錯誤:Rails/Heroku應用程序錯誤
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
我試圖尋找一個類似的錯誤,但我找不到任何具體到我的問題。這裏是英雄日誌:
heroku[api]: Enable Logplex by [email protected]
heroku[api]: Release v2 created by [email protected]
heroku[api]: Set LANG, RAILS_ENV, RACK_ENV, SECRET_KEY_BASE, RAILS_SERVE_STATIC_FILES config vars by [email protected]
heroku[api]: Release v3 created by [email protected]
heroku[api]: Attach DATABASE resource by [email protected]
heroku[api]: Release v4 created by [email protected]
heroku[api]: Scale to web=1 by [email protected]
heroku[api]: Deploy 221c876 by [email protected]
heroku[api]: Release v5 created by [email protected]
heroku[slug-compiler]: Slug compilation started
heroku[slug-compiler]: Slug compilation finished
heroku[web.1]: Starting process with command `bin/rails server -p 16863 -e production`
app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog/joyent/compute.rb:3:in `require': cannot load such file -- net/ssh (LoadError)
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog/joyent/compute.rb:3:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog/joyent.rb:1:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog/joyent.rb:1:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog.rb:40:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog.rb:40:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb:3:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/storage.rb:9:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb:3:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/storage.rb:9:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave.rb:78:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave.rb:78:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
app[web.1]: from /app/config/application.rb:7:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
app[web.1]: from bin/rails:9:in `require'
app[web.1]: from bin/rails:9:in `<main>'
heroku[web.1]: Process exited with status 1
heroku[web.1]: State changed from starting to crashed
heroku[web.1]: State changed from crashed to starting
heroku[web.1]: Starting process with command `bin/rails server -p 14724 -e production`
app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog/joyent/compute.rb:3:in `require': cannot load such file -- net/ssh (LoadError)
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog/joyent/compute.rb:3:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog/joyent.rb:1:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog/joyent.rb:1:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog.rb:40:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/fog-1.23.0/lib/fog.rb:40:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb:3:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb:3:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/storage.rb:9:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/storage.rb:9:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave.rb:78:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave.rb:78:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
app[web.1]: from /app/config/application.rb:7:in `<top (required)>'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
app[web.1]: from bin/rails:9:in `require'
app[web.1]: from bin/rails:9:in `<main>'
heroku[web.1]: Process exited with status 1
heroku[web.1]: State changed from starting to crashed
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=polar-mountain-3183.herokuapp.com request_id=4dbb54f0-d4f6-478a-8ef0-899d8030e160 fwd="174.113.76.61" dyno= connect= service= status=503 bytes=
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=polar-mountain-3183.herokuapp.com request_id=426832e0-0555-4d98-91d1-1ffdede05f6f fwd="174.113.76.61" dyno= connect= service= status=503 bytes=
我刪除了日誌的日期和時間,所以它更容易閱讀,行不那麼寬。我也明顯的原因刪除了我的電子郵件/帳戶。
是的,這正是問題所在。我昨天晚上想到了它,但太累了,無法刪除這篇文章。 – thermobeelearns