Finding the article you referred to gave me the missing piece.
Here are the relevant steps. I assume you have a Phoenix app setup and npm installed on you device.
- Install and setup the Elixir Tailwind library. The README of the library is a great resource.
- Publish your app to fly using flyctl. This post is a great guide. Just note that the
flycommands in the post might need to be replaced withflyctlcommands. - On your local machine,
cdinto your project’sassetsfolder and runnpm init. - From within your
assetsfolder, follow the DaisyUI installation steps. - Update the
Dockerfilegenerated during the early fly.io deployment. Perform the following
a. Ensure theCOPY lib libcommand comes before theRUN mix assets.deploycommnd
b. Include this commandRUN npm --prefix ./assets ci --progress=false --no-audit --loglevel=errorin theDockerfile. This should also come before theRUN mix assets.deploycommand
Expectedly, you should be good to go and your app should properly deploy to fly.io ![]()






















