Ruby environments

From wikinotes
Revision as of 20:48, 21 May 2021 by Will (talk | contribs) (→‎ruby version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Describe and build environments to run ruby code.

ruby version

ruby chruby
ruby rbenv
mkdir myproject && cd myproject
echo 2.6.5 > .ruby-version   # set 'chruby' ruby version
bundle init                  # create Gemfile
bundle install --path .gems  # install gems to '.gems' (and remember for future)

environments

ruby bundler
nix ruby