Repository for my personal academic website.
-
Have ruby-dev, bundler, and nodejs installed
On most Linux distribution and Windows Subsystem Linux the command is:
sudo apt install ruby-dev ruby-bundler nodejs
On MacOS the commands are:
brew install ruby brew install node gem install bundler
-
Run
bundle installto install ruby dependencies. If you get errors, delete Gemfile.lock and try again. -
Run
jekyll serve -l -H localhostto generate the HTML and serve it fromlocalhost:4000the local server will automatically rebuild and refresh the pages on change.
Running on Linux needs some additional dependencies prior to being able to run locally: sudo apt install build-essential gcc make
Use the provided Dockerfile to build a container that will run the site for you if you have Docker installed.
Start by build the container:
docker build -t jekyll-site .Next, run the container:
docker run -p 4000:4000 --rm -v $(pwd):/usr/src/app jekyll-site