layout |
---|
website-frame |
if [[ command -v ruby &> /dev/null ]] && [[ command -v bundle &> /dev/null ]]
then
echo "Ruby/gem already installed"
else
echo "Installing Ruby/Bundler first"
sudo apt-get install ruby-full build-essential zlib1g-dev -y
gem install jekyll bundler rake
exit
fi
This website/blog is based on Jekyll!
-
Install Jekyll Dependencies
sudo apt-get install ruby-full build-essential zlib1g-dev -y
-
Install Jekyll and Bundler (both used to serve site), then rake for unit testing.
gem install jekyll bundler rake
-
Install gems using bundler
# Note: you may be asked to update additional plugins. Do so. bundle install
-
Build Jekyll Locally
# This builds the files to use dynamic html pages bundle exec jekyll build # This serves the rest of the files (--livereload is optional) bundle exec jekyll serve --livereload
-
(OPTIONAL) Update bundler
bundle update --bundler
-
(OPTIONAL) Run sass/scss compiler
sass --watch style/
-
(OPTIONAL) Run Rake / Unit Tests
rake test