It's only the Javascript part of the asset pipeline. Everything else in this video is still valid for Rails 6.
@jigarbhatt78904 жыл бұрын
Hi Jesus Should we set config.assets.compile = true OR config.assets.compile = false OR comment this line in production mode? Please suggest me.
@JesusCastello4 жыл бұрын
The default for production is "false", which is what you should leave it as, unless you have a specific reason to not do it. More info here: stackoverflow.com/questions/8821864/config-assets-compile-true-in-rails-production-why-not
@jigarbhatt78904 жыл бұрын
@@JesusCastello Thanks a lot for the reply. When i did false i got a errors and when i removed it works. can you please explain me difference between compile false or remove line?
@JesusCastello4 жыл бұрын
The link I gave you explains this in detail... I believe removing any line of configuration falls back to the default value. You can actually check this with a "rails console" session. In terms of how this feature works, my understanding is that "asset.compile = true" will compile the assets every time there is a request, which slows things down. If you deploy with precompiled assets then you don't need "asset.compile". More info about precompilation: guides.rubyonrails.org/asset_pipeline.html#precompiling-assets If you're getting errors it's likely you've problems with precompilation, or the way you're using assets in your Rails app. .
@jigarbhatt78904 жыл бұрын
Jesus Castello okay I will review. thanks a lot 😊👍