Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.19 KB

local-development.md

File metadata and controls

49 lines (34 loc) · 1.19 KB

Local Development

Set Up Dev Environment

Prerequisites

Steps

  1. Clone the repo and change directory into it
git clone [email protected]:nyu-dh/nyu-dh.github.io.git && cd nyu-dh.github.io
  1. Install and/or load the relevant Ruby version
rvm install $(cat .ruby-version)
  1. Install Ruby gem dependencies
bundle install

Pull Data

Optionally, fetch most up-to-date site data. (See Pulling Data from Google Sheets)

Serve the Site

Serve the site with livereload by running the following command.

bundle exec jekyll s --livereload

Then preview the site in browser at http://127.0.0.1:4000/.

You can quit the server with Ctl-C on Mac.

See also Jekyll Serve Command Options.

Run tests

You can run the tests with the following command:

bundle exec rake site:test

This will build the site and flag broken HTML formatting and any broken links.