I just made a bunch of edits to the stylesheet of a Rails app hosted on a digitalocean dokku droplet. The updates appear on local, but not on production after having been pushed live. The files seem to be updated, but the app is still referencing an old stylesheet.
In the application.html.erb file I'm calling the stylesheet like so:
<%= stylesheet_link_tag 'main', 'data-turbo-track': 'reload' %>
I'm using importmap with the default config (plus sass, using the sassc-rails gem).
What I've tried:
dokku run pwf rake assets:clobberdokku run pwf rake assets:precompiledokku ps:restart pwfRails version: 7.0.8.7
Update: I've discovered that the new CSS isn't in the production server's public/assets directory at all. When checking local, it isn't there either. The local styles seem to be referenced from assets/main.source.scss (which I can't even find in the codebase....). What is going on here?
After getting some distance from the issue, I was able to use my brain and figure out what happened, and how to fix it. I was using SCSS, but never compiled the new styles to CSS. That's why they didn't update on the production.
The real question is how they DID appear on local.... Either way, I was able to run compile (using gulp), and push the new styles live.