LoginSignup
0
0

More than 3 years have passed since last update.

Precompiling assets failed.の対処法(自分流)

Last updated at Posted at 2020-11-09

Precompiling assets failed.ってなかなか消えないときありますよね。

rails assets:precompile
rails assets:precompile RAILS_ENV=production

特に上記のコマンドをやっても治んないとき。

解決法

適当なファイルひらき
①適当な1文字を追加
② git add .とgit commit -m "commit"で保存
③さっき追加した文字を削除
④またgit add .とgit commit -m "commit"で保存

こんな適当なので治るの?と思うかもしれませんが僕の環境ではこれでかなりの確率で治ります。理由はわかりませんが...。

プチ宣伝

こんな記事で宣伝なんかすんな!って人、僕もそう思います。
プログラムコードを販売できるサービスを作りました。
今なら手数料無料です!
URL
https://www.code-sell.net/

紹介記事
https://qiita.com/UTOG/items/40baefaf9a4a668d39cc

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