LoginSignup
1
1

More than 3 years have passed since last update.

【Application Error】Herokuでアプリをリリースしたらエラーが出た件 #1(備忘録)

Last updated at Posted at 2020-03-07

【Application Error】Herokuでアプリをリリースしたらエラーが出た件(備忘録)

terminal
> git push heroku master

を打ち、Deploye... doneと出るにも関わらず、
アプリのURLを叩いても、Application Errorとでる!
やってらんない!

上記のコマンドを打った際に、複数あるWaringの中に以下のようなことが記載

terminal
You have the `.bundle/config` file checked into your repository
It contains local state like the location of the installed bundle
as well as configured git local gems, and other settings that should
not be shared between multiple checkouts of a single repo. Please
remove the `.bundle/` folder from your repo and add it to your `.gitignore` file.
https://devcenter.heroku.com/articles/bundler-configuration

言われている通り、.bundle/configを抹消し、
新たに.gitignoreのファイルを生成し、.bundle/configに書いてあった、

terminal
BUNDLE_WITHOUT: "production"

こちらを.gitignoreに記載!
するとエラーが消えた!

アプリお帰りなさい〜
万事解決!

参考:
エラーの追い方
https://qiita.com/m-itoidcf/items/77d064147a32169b5449

pgのバージョン設定
https://qiita.com/Hijiri-K/items/51d53c0512a2ef455da6

Herokuでのリリース方法など
https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39

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