How to assure that assets are being copied from /priv/static/css?

I am currently trying to deploy my application, but am running into a snag. This seems super simple, but I am just missing something somewhere.

I am using Tailwind CSS for the CSS library. As part of the deployment process, it processes the current app.css file into a different form. This processing is working correctly, and generating the correct file in /priv/static/css/app.css.

If I try to run this in prod mode, like
MIX_ENV=prod mix phx.server

or create and run a release like:
MIX_ENV=prod mix release

The application runs fine, but the app.css is not included (or available) to the prod application.

The application ends up looking for a fingerprinted file like:
http://localhost:4000/css/app-82f82dc2399ea663a78f8f4a6414928e.css?vsn=d

which is not available.

Anyone have any ideas? Thanks!

Sounds like you need to run mix phx.digest before building your release or running your server as MIX_ENV=prod.

AH! i knew it would be simple. THANKS! unfortunately, this has uncovered a new issue. I have this being built as a docker image, and while the docker image is running

RUN npm run --prefix ./assets deploy
RUN mix phx.digest

It is finding some other css file to run with…

Hi! If you shared your Dockerfile I might be able to help.