2
0

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

[gigalixir]** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "hoge" does not exist の対処

Posted at

結論

gigalixir run mix ecto.migrate

を実行すればok

背景

gigalixirにアプリをデプロイしたばかりの段階でurlにアクセスしたら、

** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "hoge" does not exist

というエラーがログに出ていて、ブラウザには

internal server error 

と表示されていた。
ドキュメントを確認して上記のように対応。

参考

https://gigalixir.readthedocs.io/en/latest/getting-started-guide.html
https://elixirforum.com/t/debugging-deployment-assets/24117

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?