-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I run my app in productions tailwind doenst build assets #524
Comments
Hi @rodrigoazv , can you share more details? I guess you're using the default Dockerfile generated by rails, but if you're not, can you share it? I've tried with the default Dockerfile generated by rails and worked fine:
If you look closely you can see tailwind cli being run. There's been some issues with it lately, see #509 . But!! I'm not sure if it's the same problem. Can you run |
Here is my dockerfile, should I change something? Cli really runs but doenst create any tailwind file.
|
Dockerfile looks fine, have you checked #509 ? Have you run |
@patriciomacadden When I build the image locally, docker create correctly ![]() But when I build and deploy with kamal 2 in my VM, doesn't work, don't create tailwind file in build. Do you know something in deploy.yml to solve this? |
Hi @rodrigoazv , good thing you got it working locally! That's progress. Unfortunately I haven't used kamal yet so I'm not sure what might be going on... 😢 |
I see think we has problems between Kamal and Docker, but after downgrading to version 3.3.1, it worked fine! I’ll look into it more in the future. My app doesn’t rely heavily on the frontend, but thanks, @patriciomacadden, for your attention! |
#When I run my app in production, Tailwind doesn't build the assets.
Locally, when I run rails assets:precompile, I receive this output:
My app creates the Tailwind build files correctly.
But when my Dockerfile runs in production mode, the Tailwind precompiled assets don't build with the rest of the app, and my output doesn't include any Tailwind files.
When I run rails server locally, works well, but in production doesnt work, don't apply any style.
I'm using rails 8, and v4 of all tailwind dependencies.
Has some config missing for production mode? I just create rails new --css=tailwind for test
The text was updated successfully, but these errors were encountered: