How do I change the CSS style sheet in real time without deployment in rails?

Asked 2 years ago, Updated 2 years ago, 34 views

I run a web server at rails.The pages managed by registered users can change font size and color using the form, but the changes are not reflected in real time.

CSS updates are reflected only after deployment or server restart.If a user enters without such a reboot, how can it be reflected?

For the time being, we are running rakeassets:precompile in the background, so the CSS with the new fingerprint is created under public/assets.However, when I checked the web browser, the new style sheet is not available. Why?

ruby-on-rails ruby

2022-09-30 19:50

1 Answers

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.