[RubyOnRails] How do I configure nixpacks.toml for caching and faster deploy

ProjectId: 02153a9e-0961-4df0-973f-a3d3ded857f4 On every deploy I'm having - ruby compiled - bundle installed - assets precompiled Even when nothing changes on these. Is there a way to cache this and make deploys faster?
4 Replies
Percy
Percy2y ago
Project ID: 02153a9e-0961-4df0-973f-a3d3ded857f4
Percy
Percy2y ago
You can configure nixpacks.toml to enable caching and faster deploys by setting the Backend directory as root and ensuring that Nixpacks has access to the Frontend directory to render static files.
⚠️ experimental feature
dwaynemac
dwaynemac2y ago
What does "setting the Backend directory as root" mean? i'm still having this issue
root
root2y ago
Sorry for such a long wait. I'm not the Ruby person around here, but it looks like it's being worked on: https://github.com/railwayapp/nixpacks/pull/817
GitHub
Better Ruby caching by Milo123459 · Pull Request #817 · railwayapp/...
This PR caches the .rbenv directory. This will lead to significant speedups in Ruby builds.
Want results from more Discord servers?
Add your server