Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update instructions for rendering locally #85

Open
tsalo opened this issue Mar 25, 2024 · 0 comments
Open

Update instructions for rendering locally #85

tsalo opened this issue Mar 25, 2024 · 0 comments

Comments

@tsalo
Copy link
Member

tsalo commented Mar 25, 2024

Here are my notes from the docathon:

brew install [email protected]
brew install chruby

In my ~/.bash_profile I added:

export PATH="/usr/local/opt/[email protected]/bin:$PATH"
source /usr/local/opt/chruby/share/chruby/chruby.sh
RUBIES+=(/usr/local/opt/[email protected])

alias bejs="chruby [email protected];bundle exec jekyll serve"

Then in the terminal again:

cd /path/to/repo
gem install bundler
bundle install

Now I just do bejs to start building the site.
Probably needed a bundle install in the repo's folder at some point too.
Basically, OSX is weird about Ruby. I'm pretty sure it doesn't let you modify your builtin Ruby install, so I used homebrew to install a newer version and then chruby (https://github.com/postmodern/chruby) to switch between Ruby versions. bundler is a tool that will install all of the requirements for a given Ruby "package" (i.e., the website, based on its Gemfile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant