Answer the question
In order to leave comments, you need to log in
Why is there a problem with resources in production?
In general, having understood what and how, I will describe the whole situation.
There is CloudFlare. He has enabled Development Mode in the domain settings. But CloudFlare is unlikely to affect anything at all here.
Move on.
If the project is run in development mode, then everything is fine. Recompiles the resource if it has been changed and the resource is successfully available at: site.ru/assets/application-md5-hash.css
If the project is run in production mode, then some nonsense comes out. I've been tinkering with this for hours now and seen some shit . About everything in more detail:
rake assets:precompile
, which in turn generated everything needed in the /public/assets directory. The file names and the hash in these names converge (the source code in the browser + what is on the server).rake assets:precompile
. Everything returned to the starting point - all 404 errors. There is nothing.Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question