Initial setup:
Install ruby in brew:
brew install ruby
Add brew ruby in front of system ruby:
PATH=/usr/local/opt/ruby/bin:$PATH
PATH=/usr/local/lib/ruby/gems/2.6.0/bin:$PATH
Install bundler:
gem install bundler
Install gems for site:
bundle install
Run server:
bundle exec jekyll serve
You can run the server on your computer and then verify the pages render correctly on a phone. By default the server will only bind to local host, so it is not accessible on your local network. Add --host 0.0.0.0
to the bundle exec
command to have the server bind to the external IP addresses on your computer.
Posts with future dates will not normally render. Add --future
to the bundle exec
command to see these.