This is a Rails app template backed by Nix and bundix (specifically the fork that supports multiple platform declarations, which is required for Sorbet).
It comes with:
- PostgreSQL, auto-installed and prepped by the flake
- Sorbet
- scripts for managing Ruby dependencies, since
bundle add <gem>no longer works in Nix's readonly store
sh <(curl -fsSL https://raw.githubusercontent.com/flyinggrizzly/froyo-choo-choo/main/install.sh) [<path>]
Run 👆 command, and follow any intructions (sets up the template in . if no <path> is provided).
add-gem <gem>adds a gem to yourGemfile, runsbundle lock, and then regeneratesgemset.nixupdate-gemsruns justbundle lockand regensgemset.nix. Useful if you've manually edited theGemfilebundle-add <gem>runsbundle add <gem> --skip-install(used byadd-gem)bundle-lockrunsbundle lockbundle-updaterunsbundle lock --update(used byupdate-gems)gemset-updateregeneratesgemset.nixwithbundix -l, and builds it out fromGemfile.lock(used byadd-gemandupdate-tems)
If you want, you can also run the actual bundler commands, but don't forget the --skip-install flag.