[RUBY] When I push to Heroku, I get angry with Precompiling assets failed.

Creating an original application.

ruby '2.6.5' rails '6.0.0' mysql2', '0.5.3'

After pushing to Heroku,

remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...


  ![remote rejected] master -> master (pre-receive hook declined)
  error: failed to push some refs to 'https://git.heroku.com/Original app
Name.git'

I got an error.

With a flashy red letter error! I was upset by Mark, but I looked it up right away. By the way, I accessed the production environment, but of course I couldn't update it.

By the way, I guessed that it was probably around assets from the letters of Precompiling assets failed, and went to see if there was an error statement at the top.

Then there was! The one who seems to be the cause of the error!

  remote:        Sass::SyntaxError: Invalid CSS after "...kground-color: ": expected expression (e.g. 1px, bold), was ";"

I searched based on Sass :: SyntaxError: Invalid CSS and the hint of "... kground-color:". For the time being, Sass has no touch, so I looked inside the CSS.

   background-color: ;

Nothing. .. ..

When I checked it locally, it was OK without this property, so I deleted it. But why did you write it? ..

Triumphantly after pushing to the master

   %  git push heroku master

Then I got the same error again. .. .. Also, since the error amount is the same, I checked all the CSS again.

    left      : 50%;

The symbol is too far away. .. ..

   left: 50%;

Change to here and try again

   %  git push heroku master

Then I succeeded! !! Was good! !!

Since I am a beginner, I will cherish each error and solve it.

Recommended Posts

When I push to Heroku, I get angry with Precompiling assets failed.
How to deal with Precompiling assets failed.
I tried to get started with WebAssembly
I was angry with proc_open (): fork failed when trying to composer update inside a Docker container
Rubocop gets angry when I try to fill zeros (fill 0s) with Ruby
I tried to get started with Spring Data JPA
Precompiling assets failed. Error
I want to get along with Map [Java beginner]
How to resolve errors when doing git push heroku master
I want to push an app made with Rails 6 to GitHub
I tried to get started with Swagger using Spring Boot
I get a 404 error when testing forms authentication with Spring Security
I want to avoid OutOfMemory when outputting large files with POI
I got an IllegalAccessError when trying to use PowerMock with JUnit
I get a Ruby version error when I try to start Rails.
What I was addicted to when implementing google authentication with rails
I got an error and couldn't push! !! [error: failed to push some refs to]
What to do if you get angry with OpenSSL with pyenv install
[Rails] I want to add data to Params when transitioning with link_to
How to get started with slim
I tried to interact with Java
When I open a project in Android Studio, I get angry with Gradle sync failed: Your project path contains non-ASCII characters. This will most likely
How to get along with Rails
Memo to get with Struts2 + Ajax
Problems I was addicted to when building the digdag environment with docker
[Note] I want to get in reverse order using afterLast with JdbcTemplate
Problem with Method Not Allowed when git push heroku and open heroku URL
I want to get the IP address when connecting to Wi-Fi in Java
What to do if you get an error when you hit Heroku logs
When I try to sign up with devise, it automatically redirects to root_path
When I try to build a Google Map template in Android Studio, I get angry with Files \ Java \ jdkXXX \ bin \ java.exe'' finished with non-zero exit value 2.