david/jekyll-dev
david
/
jekyll-dev
Archived
1
0
Fork 0
This repository has been archived on 2023-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
jekyll-dev/jekyll.sh

15 lines
328 B
Bash

#!/bin/bash
# set $PATH
export PATH=$PATH:$HOME/.gem/bin
# create new jekyll site if the destination directory it does not exist
if [ ! -d "/mnt/$JEKYLL_SITE" ]; then
cd /mnt
jekyll new $JEKYLL_SITE
fi
# build and serve
cd /mnt/$JEKYLL_SITE
bundle install --path $HOME/.gem
bundle exec jekyll serve --host=0.0.0.0 --watch