Blog carlosal1015.github.io

Instructions ⚙️

Please check if the installation of rvm, ruby, bundle and gem are correct with next instructions below:

$ rvm --version
rvm 1.29.10 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
$ ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
$ bundle --version
Bundler version 2.2.2
$ gem --version
3.2.2

Otherwise, please visit their website for more information about the installation in your system.

Useful links

Arch's RubyLang set up

$ curl -L get.rvm.io > rvm-install
$ bash < ./rvm-install
$ source ~/.rvm/scripts/rvm
$ deepin-editor .zshrc
$ source .zshrc
$ gem install --user-install bundle
$ rvm get stable

Build

$ bundle config set path 'vendor/bundle' # Once time
Your application has set path to "vendor/bundle". This will override the global value you are currently setting
$ bundle update --bundler # Update bundler
...
Bundle updated!
$ bundle update # Update all gems, do not recommended.
$ gem cleanup # Remove old version of dependencies
$ gem update --system # Optional

Reproduce

$ cd src
$ bundle install
...
Bundle complete! 4 Gemfile dependencies, 94 gems now installed.
Bundled gems are installed into `./vendor/bundle`
$ bundle exec jekyll clean
$ bundle exec jekyll build
$ bundle exec jekyll serve

Go to the server address: localhost:4000 in the browser.