This file will eventually contain instructions about how to modify and deploy Emily's campaign website.
We're planning to use the jekyll theme 'agency' https://github.com/raviriley/agency-jekyll-theme
Posts can be added by duplicating one of the example md files under /_posts/ directory.
Using a Ruby version manager like rbenv or rvm allows you to manage Ruby versions and gem installations without requiring superuser permissions.
-
Install
rbenv:-
On macOS, you can use Homebrew:
brew install rbenv
-
Add
rbenvto your shell:echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc source ~/.zshrc
-
-
Install Ruby:
-
Install a specific version of Ruby:
rbenv install 3.3.1 rbenv global 3.3.1
-
-
Set Ruby as active on shell launch
- Run this to add to your bash/zsh file:
if [ "$SHELL" = "/bin/zsh" ]; then echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc; elif [ "$SHELL" = "/bin/bash" ]; then echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bashrc; fi
- Restart your terminal, and run
ruby -vto make sure you're on ruby 3.3.1
-
Install Bundler:
-
Now, install Bundler:
gem install bundler
-
-
Run locally:
bundle install bundle exec jekyll serve