sergio_101
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!
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










First Post!- Show Best Posts
- Show All Posts (oldest first)
- Show All Posts (newest first)
trisolaran
Sounds like you need to run mix phx.digest before building your release or running your server as
MIX_ENV=prod.Last Post!
trisolaran
Hi! If you shared your Dockerfile I might be able to help.