This is the github repo for the griffith lab website. The website uses the static site generator jekyll and is based on the Feeling Responsive jekyll theme. Development occurs on the dev branch, the live site is located on the master branch.
To install this site locally run the following commands:
- Clone the repo and cd into it
$ git clone git@github.com:griffithlab/griffithlab.github.io.git
- Install the bundler
$ gem install bundler
- Install gems
$ bundle install
- run jekyll and watch for changes
$ bundle exec jekyll serve --config _config.yml,_config_dev.yml --watch
The site should now be running on localhost port 4000. Changes to files will show up interactively on localhost:4000
Note: The _config.yml and _config_dev.yml files are only read during the initial serve, changing these files will require re-running step 4 for changes to appear.
To install the site locally with docker run the following commands:
- Clone the repo
$ git clone git@github.com:griffithlab/griffithlab.org.git
- Pull the docker image
$ docker pull griffithlab/griffithlabdev:0.0.1
- Run the docker
$ docker run -p 4000:4000 -v ~/git/griffithlab.org/:/opt/git/griffithlab.org -it griffithlab/griffithlabdev:0.0.1
Make sure that the above command has correct path to cloned git repo (The first part specified with -v option). The site should now be running on localhost port 4000. Changes to files will show up interactively on localhost:4000.
Note: The Dockerfile for this image is maintained in this repo and the image itself is hosted on dockerhub.
Note: The _config.yml and _config_dev.yml files are only read during the initial serve, changing this file will require re-running step 3 for changes to appear.
The code for this site is licensed under an MIT license, images may have specific attribution requirements and are licensed individually under assets/img/image_attribution