11 lines
236 B
Bash
11 lines
236 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# create new or serve existing jekyll page (/mnt/$JEKYLL_SITE)
|
||
|
|
||
|
cd /mnt
|
||
|
if [ ! -d "/mnt/$JEKYLL_SITE" ]; then
|
||
|
jekyll new $JEKYLL_SITE
|
||
|
fi
|
||
|
cd $JEKYLL_SITE
|
||
|
bundle install
|
||
|
bundle exec jekyll serve --host=0.0.0.0 --incremental
|