-
Notifications
You must be signed in to change notification settings - Fork 152
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
Can't deploy with Kamal after install esbuild #208
Comments
Not a lot we can do about that. If you generate a new Rails 8 app and you say you want esbuild, that is configured for you. But otherwise this is something you have to do by yourself. Possible we could add something to an FAQ though. Feel free to explore that! |
Thanks, @dhh. I think adding a note to the FAQ would go a long way. Would it be totally crazy to have the
|
Happy to consider a PR! All depends on how invasive it feels etc. |
This should help devs who added the gem to a Rails app after initially generating the app. Background is at rails#208
After installing this gem and using it to install
esbuild
, thebuild
stage of the Dockerfile doesn't have the tools needed to precompile assets. Here's the error I got:I was able to resolve this issue by adding the following to the
build
stage of the Kamal-generatedDockerfile
after theapt-get install build-essential
step.I don't know if this is something that is generalizable, or if it is needed for all of the various bundlers. But, I suspect that other folks will run into this error and might not have the Docker knowledge needed to fix it.
The text was updated successfully, but these errors were encountered: