Skip to content

dotWee/dotWee.github.io

Repository files navigation

Jekyll Build & Deploy

a simple static website* built using jekyll and some handcrafted stylesheets

* /(personal|webbased|cv-letter|resume)/g

setup

manually

  1. install a full ruby development environment

  2. install jekyll and bundler gems:

    $ gem install jekyll bundler --user-install
  3. clone git repository and change into repo directory:

    $ git clone https://github.com/dotWee/dotWee.github.io.git dotwee-github-io && cd dotwee-github-io

through devcontainer

open this repository in a devcontainer-supported-ide (like visual studio code or GitHub Codespace):

  1. clone git repository and change into repo directory:

    $ git clone https://github.com/dotWee/dotWee.github.io.git dotwee-github-io && cd dotwee-github-io
  2. open the git repository in Visual Studio Code & install the Remote-Containers extension

  3. Visual Studio Code will detect the devcontainer configuration and prompt you to reopen the project in a devcontainer: click on "Reopen in Container" and you're done

usage

run site locally using jekyll

  1. install required dependencies:

    $ bundle install
  2. build the site and make it available on a local server:

    $ bundle exec jekyll serve
  3. now browse to localhost:4000

run site using docker

$ docker run --rm \
    --name dotwee-github-io \
    -p 4000:4000 \
    --volume="$PWD:/srv/jekyll" \
    -it jekyll/jekyll:latest \
    jekyll serve --force_polling --livereload

alternatively using docker-compose:

note: see ./docker-compose.yml for reference

version: '3.7'
services:
  dotwee-github-io:
    image: jekyll/jekyll:latest
    command: jekyll serve --watch --force_polling
    volumes:
      - $PWD:/srv/jekyll
    ports:
      - 4000:4000
$ docker-compose up -d

update ruby gems dependencies

$ bundle update

cleanup binaries

$ bundle exec jekyll clean

license

copyright (c) 2015 lukas 'dotwee' wolfsteiner lukas@wolfsteiner.media

licensed under the do what the fuck you want to public license