So ive been playing around with this for a few days now and still no luck. It works perfectly fine in development where all the css is correct. As soon as it deploys to a droplet it strips all the classes like w-10 etc bar the 2 colours i added to the theme.
Not sure why I’m having so many issues with this, but it a new rails project with no extras and then just doing a standard deploy to a droplet using kamal2.
Im at a loss with this and am either going to have to just use the CDN or go back to Laravel.
Ah that’s interesting, I was looking at something late last night about the manifest file and it was something I was going to look into but, in all honesty I don’t know enough about. But this looks like a possible route.
Thank you, I’ll report back when I’ve give it a shot.
So tried the Settings in Docker and switched to Docker VMM, but didn’t help. What I ended up doing was to change the config.assets.compile to false and then added config.assets.manifest = Rails.root.join('config', 'manifest.json'). I did leave it on Docker VMM in docker though so maybe it helped.
Not sure why the config.assets.compile was set to true. Likely something I changed when messing around trying to get it to work.
Thanks for spotting that one, it got me to the next step.