From 2cfe57c42696a2c72eae1933c9356065ff06b687 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 5 Apr 2020 17:11:06 +0200 Subject: [PATCH] Update Ruby --- content/en/admin/install.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/content/en/admin/install.md b/content/en/admin/install.md index 83802ded..d718a9d8 100644 --- a/content/en/admin/install.md +++ b/content/en/admin/install.md @@ -73,14 +73,8 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build Once this is done, we can install the correct Ruby version: ```bash -RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.5 -rbenv global 2.6.5 -``` - -Default gem version shipped with ruby\_2.6.0 is incompatible with latest bundler, so we need to update gem: - -```bash -gem update --system +RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.6 +rbenv global 2.6.6 ``` We’ll also need to install bundler: @@ -144,12 +138,16 @@ git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1) Now to install Ruby and JavaScript dependencies: ```bash -bundle install \ - -j$(getconf _NPROCESSORS_ONLN) \ - --deployment --without development test +bundle config set deployment 'true' +bundle config set without 'development test' +bundle install -j$(getconf _NPROCESSORS_ONLN) yarn install --pure-lockfile ``` +{{< hint style="info" >}} +The two `bundle config` commands are only needed the first time you're installing dependencies. If you're going to be updating or re-installing dependencies later, just `bundle install` will be enough. +{{< /hint >}} + #### Generating a configuration {#generating-a-configuration} Run the interactive setup wizard: