15 lines
328 B
Bash
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 |