7
5

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.

Herokuにデプロイ後に「We're sorry, but something went wrong」と表示された場合

Last updated at Posted at 2019-02-18

こんにちは@yukifreeworld12です。

#問題
Herokuへのデプロイの為
$ git push heroku master
でpush完了後にHerokuでアプリを開いたところ
「We're sorry, but something went wrong」
と表示されアプリがしっかりと開けない。

#解決
カラムの情報が入ったマイグレーションファイルをHerokuのデータベース上で作成する。
$ heroku run rails db:migrate

#結果
これで無事にHerokuでアプリが表示されるようになりました。

#追記
Herokuのエラー確認
$ heroku logs --tail

7
5
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?