Closed
Description
I'm not sure where to post this because I cannot tell if it's kamal, tailwindcss-ruby, or tailwindcss-rails that's the underlying issue.
When running kamal deploy
on a new project I'm getting the following error when precompiling assets.
#17 [build 6/6] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
#17 5.595 error: File not found: "/rails/app/assets/tailwind/application.css"
#17 5.600 bin/rails aborted!
#17 5.600 Command failed with exit 1: /usr/local/bundle/ruby/3.3.0/gems/tailwindcss-ruby-4.0.6-x86_64-linux-gnu/exe/x86_64-linux-gnu/tailwindcss
#17 5.612
#17 5.612 Tasks: TOP => assets:precompile => tailwindcss:build
#17 5.612 (See full trace by running task with --trace)
#17 ERROR: process "/bin/sh -c SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile" did not complete successfully: exit code: 1
Inspecting the image I can confirm the file is present but I've not been able to make progress to understand what's failing or find anyone with a similar issue.
Interestingly the build is completing when I run docker build -t app-name .
by hand on my macos architecture.
Finally, I'd like to thank y'all for the time you've spent integrating Tailwind into Rails. I've been using Tailwind since v2 and these latest gems and install have been the best to work with yet. Thank you and keep up the great work.