LoginSignup
0
0

More than 1 year has passed since last update.

git push heroku masterが失敗する

Posted at

書いた理由

備忘メモ

起こったこと

rails tutorialを第3章を進める過程で
git push heroku master
を実行したとき、コケた

remote:        We will use "yarn" to install the CLI via "yarn add -D webpack-cli".
remote:        Do you want to install 'webpack-cli' (yes/no): 
remote: 
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed

解決したこと

webpack-cliを再インストールしたり、webpackを再インストールした上で、
最終的に再度以下を実行したらできた
git commit -am "hogehoge"
git push
git push heroku master

思ったこと

ただ、デプロイを試みる前にコミットをしていなかったため、
対策を打ったつもりが打ててなかった、という状況と思われる。
herokuの理解が足りていないが、コミットしたものしか上げられないものだったのだろう。

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