Which saves packages to a “vendor” directory within the project folder, similar to Composer’s “vendor” folder or npm’s “node_modules” folder.ħ. Once Bundler was installed, I needed to use a similar approach to save bundle packages locally, rather than in a system-wide location.įrom within the website folder, I ran: bundle config set -local path 'vendor/bundle' If you’re using the Bash shell the syntax is slightly different.ĥ. Note that for newer versions of Ruby, you should change 2.6.0 above to match your installed version. Then, I added Bundler (and other gems) to my path file following the instructions here: echo 'export PATH="$HOME/.gem/ruby/2.6.0/bin:$PATH"' > ~/.zshrc That’s no longer recommended, so instead I did the following: gem install -user-install bundler jekyllĤ. In the past, I’ve installed Ruby gems using sudo, as part of the system Ruby installation. The version of Ruby included with Big Sur (currently 2.6.0) is recent enough good to go there.ģ. Check that a new enough version of Ruby is installed to meet Jekyll’s system requirements: ruby -v Clone the static website repository you’re working on, and cd into that folder.Ģ. ![]() (Note that this is for a fresh install on a new Mac, using the default zsh shell if you’ve upgraded to Big Sur and have older Ruby versions or packages installed, you may want to follow the steps here or here to use Homebrew, rvm, or another installation method.) Installation stepsġ. I recently set up Jekyll for the first time in a while on a new computer, which involves getting Ruby and the Bundler package manager to work happily. Jekyll is the OG of static websites and it’s a bit dated nowadays, but GitHub Pages’ built-in support for it is really handy. Similar tools include Hugo (my go-to for most civic tech projects), Gatsby (which powers “ Is this blocked in my department?”), and Eleventy (which I’ve only used once, but found really easy to use). ![]() Jekyll is a static website builder, which makes it easy to build and deploy essentially indestructible (although usually not interactive) websites. Our team often uses Jekyll and GitHub Pages to build micro-sites for project documentation. Installing Jekyll locally on MacOS Big Sur
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |