LoginSignup
1
1

More than 5 years have passed since last update.

本番環境が起動しない。(railsチュートリアル)

Posted at

・問題 
git等をいじってたらherokuでの本番アプリが起動しなくなった。

Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.

・解決法
heroku logs | grep error
とエラーが起きてるのか見る。

$ heroku logs | grep error
2018-04-13T11:05:48.041458+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=boiling-springs-7.herokuapp.com request_id=f77ce1d1-e709-491d-853f-8012a3ed0c92 fwd="125.199.21.227" dyno= connect= service= status=503 bytes= protocol=https

desc="App crashed" アプリ自体が壊れてしまった?

errorに絞らず heroku logs でログを見ると
/app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:78:in `eval': uninitialized constant CarrierWave::Storage::Fog (NameError)
の一文を発見。

どうやらチュートリアルの飛ばしていいと書いてある13.4.4を飛ばしたせいっぽい。
13.4.4を改めて終わらすと本番環境起動しました。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1