CharlesIrvine
Trouble deploying LiveView/Flowbite app to Fly.io
I have a Phoenix/LiveView app that uses Flowbite. Locally, everything renders as expected. However, when I deploy the app to Fly.io, all tailwind styling is absent. I followed the instructions at https://flowbite.com/docs/getting-started/phoenix/#install-flowbite to get Flowbite integrated with my app.
One last thing, when I pull up my app at https://irvine-my-app.fly.dev/ and look in the dev console, I see what is probably indicative of the problem:
app.css:1 Failed to load resource: the server responded with a status of 404 ()
Any ideas on what my problem might be would be much appreciated. Thanks
Marked As Solved
CharlesIrvine
The problem was that the node_modules directory wasn’t deployed via the generated docker file, since it was explicitly ignored in the generated .dockerignore file. Once the problem was corrected, assets were correctly deployed and everything was styled correctly.








