0
0

More than 3 years have passed since last update.

Herokuでデプロイしたときにapplication errorの対処法

Posted at

初投稿です。
間違いがあるかもしれませんがそのときにはご指摘ください。

概要

Herokuでデプロイしたあとに本番環境でapplication errorが発生。
ログを見るように書いてあるのでログを確認してみると

heroku[router]: at=error code=H10 desc="App crashed" method=GET

と書いてある。調べてみるとどうやらアプリがクラッシュしてしまっているらしい。次に

herock run rails  c

を行うと最後のところに

/app/app/controllers/application_controller.rb:13: syntax error, unexpected
end-of-input, expecting end (SyntaxError)

とある。どうやらapplication_controllerでendの数が違っていた様子。
修正してアップしたら問題なくいけました。

0
0
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
0
0