0
2

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 5 years have passed since last update.

「We're sorry, but something went wrong」herokuにデプロイしたらエラー表示が出た

Posted at

herokuにデプロイしたら、We're sorry, but something went wrongというエラー表示が出てしまった。

前提

  • 最初にデプロイした時は正常だった
  • 新しいModelやDatabaseを作成した

解決策

解決策を調べてみて、下記を参考にしました。
https://qiita.com/ryosuketter/items/f7997be31f079c96f66e

「PostgreSQL」アドオンの追加

$ heroku addons:create heroku-postgresql:hobby-dev

heroku addons:create はアドオンを追加するコマンド
hobby-dev はheroku-postgresqlの唯一の無料プラン

マイグレーション

$ heroku run rails db:migrate

確認

これで動作確認をしたところ、無事にデプロイが完了しました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?