0
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 1 year has passed since last update.

Railsチュートリアル 第1章のデプロイでつまずいた話。

Posted at

意気揚々とRailsチュートリアルを初めてみた。

どんどん勧めていくうちにGithubにpushできたー。

よしいよいよデプロイするでー。

git push heroku master

なんとエラー出てしまった

ログをたどると

!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed

さらに上にたどると

Compilation failed:
error Command "webpack" not found.

   yarn run v1.22.17
   info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

あれーwebpackインストールしたはずなのになーとか思いつつ

再度rails webpacker:install

Webpacker successfully installed 🎉 🍰

さあいざもう一度

git push 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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?