1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【解決方法1】We're sorry, but something went wrong. If you are the application owner check the logs for more information.

Last updated at Posted at 2022-02-23

【事象】
RailsTutorial第6版の7章。
herokuへのデプロイ後に本番環境を確認したところ、なぜか/signupへのリンクで下記エラーが発生。
「We're sorry, but something went wrong. If you are the application owner check the logs for more information. 」

開発環境では問題なく作動しているが本番環境の/signupへのリンクで何か問題が起きていることが発覚。

【やったこと】
下記コマンドでログを確認したところ、status=500の赤いテキストを発見。
heroku logs --tail

500エラーとはサーバーのエラーとなり、heroku側のエラー。
本番環境でマイグレーションしていないことに気づき、下記コマンドを実行。解決。
heroku run rails db:migrate

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?