Skip to content

Update instructions for rendering locally #85

Open
@tsalo

Description

@tsalo

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions