[RUBY] How to deal with Precompiling assets failed.

Precompiling assets failed. There are times when it doesn't disappear easily.

rails assets:precompile
rails assets:precompile RAILS_ENV=production

Especially when the above command does not help.

Solution

Appropriate file open ① Add an appropriate character ② Save with git add. And git commit -m "commit" ③ Delete the character you just added ④ Also save with git add. And git commit -m "commit"

Will it be cured because it is so suitable? You might think, but in my environment this will cure with a good chance. I don't know why ...

Petit promotion

Don't advertise in such an article! I think so too. We have created a service that allows you to sell program code. No fees now! URL https://www.code-sell.net/

Introductory article https://qiita.com/UTOG/items/40baefaf9a4a668d39cc

Recommended Posts

How to deal with Precompiling assets failed.
[Android] How to deal with dark themes
When I push to Heroku, I get angry with Precompiling assets failed.
Precompiling assets failed. Error
Diet program with preprocessor (how to deal with i-appli size)
How to deal with fatal: remote origin already exists.
How to deal with No template for interactive request
How to number (number) with html.erb
[Rails] How to deal with URL changes after render
How to update with activerecord-import
[Docker + Rails] How to deal with Rails server startup failure
How to deal with the error ERROR: While executing gem ... (Gem :: FilePermissionError)
How to deal with Bundler :: Dsl :: DSLError by rewriting gemfile
How to deal with different versions of rbenv and Ruby
How to get started with slim
How to enclose any character with "~"
How to get along with Rails
How to start Camunda with Docker
[Rails / RSpec] How to deal with element has zero size error
How to deal with 405 Method Not Allowed error in Tomcat + JSP
Android: How to deal with "Could not determine java version from '10 .0.1'"
Project facet Java version 13 is not supported. How to deal with
How to crop an image with libGDX
How to adjustTextPosition with iOS Keyboard Extension
How to compile Java with VsCode & Ant
[Java] How to compare with equals method
How to use BootStrap with Play Framework
[Rails] How to use rails console with docker
[Note] How to get started with Rspec
How to do API-based control with cancancan
How to achieve file download with Feign
How to implement TextInputLayout with validation function
How to handle sign-in errors with devise
How to delete data with foreign key
How to test private scope with JUnit
How to monitor nginx with docker-compose with datadog
How to achieve file upload with Feign
How to run Blazor (C #) with Docker
How to build Rails 6 environment with Docker
Java8 / 9 Beginners: Stream API addiction points and how to deal with them
Challenge to deal with garbled characters with Java AudioSystem.getMixerInfo ()
How to download Oracle JDK 8 rpm with curl
It's a pain to deal with old dates
[Java] How to test for null with JUnit
How to mock each case with Mockito 1x
How to mock each case with PowerMock + Mockito1x
How to test interrupts during Thread.sleep with JUnit
[Laravel] How to deal with out of memory error when composer require [Docker]
How to use built-in h2db with spring boot
How to search multiple columns with gem ransack
How to deploy
[Swift] How to link the app with Firebase
How to create multiple pull-down menus with ActiveHash
How to get started with Eclipse Micro Profile
How to give your image to someone with docker
How to insert all at once with MyBatis
How to monitor SPA site transitions with WKWebView
How to write test code with Basic authentication
[Rails] How to easily implement numbers with pull-down
How to build API with GraphQL and Rails
How to use nfs protocol version 2 with ubuntu 18.04