Website for the Fastboot-Assistant using Jekyll.
Warning
Easier Snap setup is blocked by snap.ruby#14 Please use native packages for now.
- Add
export GEM_HOME=${HOME}/.gem
to ~/.profile or ~/.bashrc - Add
export PATH=${PATH}:$(ruby -r rubygems -e 'puts Gem.user_dir')/bin
to $PATH sudo apt-get install ruby-full build-essential zlib1g-dev
to install Ruby and its dependencies- Reload Linux or terminal session for changes to take effect
- Verify enviroment configuration:
$ ruby -r rubygems -e 'puts Gem.dir'
/home/<user>/.gem
$ ruby -r rubygems -e 'puts Gem.user_dir'
/home/<user>/.gem/ruby/3.0.0
gem install --user-install bundler
to install Ruby package manager- Execute
bundle env
in the project root directory to check environment configuration briefly. Bundler path, Gemfile depepdencies, Gemfile.lock should be correctly identified, i.e.
...
## Bundler settings
path
Set for your local app (/path/to/fastboot-assistant-website/.bundle/config): "vendor/bundle"
## Gemfile
### Gemfile
ruby
source "https://rubygems.org"
### Gemfile.lock
GEM
remote: https://rubygems.org/
...
- Execute
bundle install
to install dependencies listed in Gemfile. Installation should successfully complete, i.e.
Bundle complete! 8 Gemfile dependencies, 99 gems now installed.
Bundled gems are installed into `./vendor/bundle`
- Execute
bundle exec jekyll build
to build the website for the first time. - Now you can serve the website locally as per instruction below.
Execute bundle exec jekyll serve --livereload
to build and serve the website at http://127.0.0.1:4000/
Jekyll will automatically refresh the page with each change you make to the source files.