-
Notifications
You must be signed in to change notification settings - Fork 186
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
Missing tailwind.css in production #114
Comments
I came across this issue found a workaround from the log while deploying. Checkout the log below.
Looks like this is an issue that tailwind is not available for arm. For now I got it fixed by adding linux platform to Gemfile.lock using:
Probably #112 might fix this issue. |
@wiiikiii is your issue solved when using the latest release (v 2.0.3)? |
Same thing is happening to me. I'm running OpenBSD in production. I set up the whole thing locally and then rsync the same way @wiiikiii is doing and I'm getting the same error. I'm with Rails 7.0.0 and tailwindcss-rails 2.0.4. |
Same goes for me, with platform 'x86_64-linux' in production and locally on 'arm64-darwin-21'. I get also the above error. I am on Rails 7.0.1 and tailwindcss-rails 2.0.4 Edit: If I change the following parameter in the production config from: config.assets.compile = false to config.assets.compile = true It doesn't throw the error any more. I know that's not ideal. Any ideas how to properly fix this? |
If you're running on separate platforms, you need to add the platforms needed. See https://github.com/rails/tailwindcss-rails#check-bundler-platforms |
I am running freebsd in production.
Locally I am preparing for production
the following file has been created
I, [2021-12-23T15:20:13.950831 #72321] INFO -- : Writing dev.site/public/assets/tailwind-9a9d4d350c33eade01e355193e6b277f587e92f4a1bd036122cd72af203f15a1.css
I, [2021-12-23T15:20:13.951302 #72321] INFO -- : Writing dev.site/public/assets/tailwind-9a9d4d350c33eade01e355193e6b277f587e92f4a1bd036122cd72af203f15a1.css.gz
and sync the all file to the server.
after touch tmp/restart.txt in production I get the error in production log.
The tailwind.css exists in app/assets/builds/
The text was updated successfully, but these errors were encountered: