Table of Contents
1. Rails, GNU Guix demo
This repository is a really quick example of how to use Ruby on Rails with GNU Guix. Most Ruby on Rails applications will probably use a combination of Rubygems and Bundler to manage some of the dependencies, but it's possible to substitute Guix packages for Bundler, to gain some of the advantages of working with GNU Guix.
To try this out, you'll need to:
git clone https://git.cbaines.net/rails/guix-demo
git submodule update --init
- Setup the guix submodule, some instructions here: https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
- Use
direnv
to setup the environment correctly, or run:./guix/pre-inst-env guix environment --ad-hoc ruby ruby-rails
- Then run
rails s
fromtestapp
Once Ruby on Rails support is in Guix properly (rather than a branch), this should hopefully be easier. This bug [1] tracks the overall progress, but other bugs are used for subsets of the patches. If you have any problems, email mailto:mail@cbaines.net.