So its a standard New rails project with nothing really added as extras. The classes in the views are like the code below:
``` <dd class="mt-4 flex flex-auto flex-col text-base/7 text-sky-100"> <p class="flex-auto"> Follow the email instructions to provide your ID to allow use of our systems </p> </dd> ```
And the Dockerfile is the boilerplate is the one that comes with a new rails project when setting up. Im confused lol...
# This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand: # docker build -t expost_website . # docker run -d -p 80:80 -e RAILS_MASTER_KEY=<value from config/master.key> --name expost_website expost_website
# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version ARG RUBY_VERSION=3.4.5 FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
# Run and own only the runtime files as a non-root user for security RUN groupadd --system --gid 1000 rails && \ useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \ chown -R rails:rails db log storage tmp USER 1000:1000
# Entrypoint prepares the database. ENTRYPOINT ["/rails/bin/docker-entrypoint"]
# Start server via Thruster by default, this can be overwritten at runtime EXPOSE 80 CMD ["./bin/thrust", "./bin/rails", "server"] ```
I setup a new project and added the --css tailwinind flag and added a quick scaffhold, then setup a fresh server and deployed. This is the output on production on a fresh install and droplet! In dev its fine... Its stripped the styling out.
In the Settings in Docker I switched to Docker VMM, but don't know if that helped or not. 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.