-
Notifications
You must be signed in to change notification settings - Fork 25
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
Improve assets precompilation #326
Comments
@hoangmirs @andyduong1920 anyone willing to work on this one? :D Thanks!! 🙇 |
Hi @malparty, I'm not sure this is related to the #264 issue :D I didn't catch up with the Rails assets tooling for a while; before starting this improvement, are we using esbuild as the default tool for modification? Also, will we target to sync the compiled assets to S3 on the same issue 🤔 should we separate that into two different topics 🤔 |
@andyduong1920 |
Also @malparty FYI we might improve the |
Yep, maybe we should use the NPM |
Why
The template has a workaround to precompile assets for the
production
env. Since Rails seems to require all env variable to be set, the following add a dummy value:rails-templates/bin/docker-assets-precompile
Lines 15 to 20 in 0e40c04
However, with the new build process with
esbuild
, it seems that just setting the env variableASSET_ENV=production
is sufficient as per this article. So it might be time to revisit.Also, it would be good to sync assets files to S3 as well instead of serving assets from Heroku.
Who Benefits?
Web developers who work on Ruby on Rails projects
The text was updated successfully, but these errors were encountered: