Context:
In ruby on rails project, I would like to live compile the assets on production.But, newly added CSS is not applied to the production.I found there is a setting config.assets.compile = false
, which means the production is using precompiled assets.
However, after setting config.assets.compile = true
, it is still not working.This post is to navigate this situation.
Trial:
Clean the precompiled assets RAILS_ENV=production rake assets:clean
It is still not working, because there is still public/assets
in the project directory.
Solution:
Another command: RAILS_ENV=production rake assets:clobber
The whole folder public/assets
is removed. Now... read more
Comments