When using jekyll to generate a static page, I wanted to have jekyll running as a service (by using upstart and monit).
Usually you launch jekyll with the --watch
parameter and it will refresh the page continously.
Setup a upstart file called /etc/init/jekyll.conf
.
script
export LANG="en_US.UTF-8"
exec start-stop-daemon --make-pid --start --pidfile /var/run/jekyll.pid --chdir /home/dracoblue/live/ --chuid dracoblue:dracoblue --exec /usr/bin/jekyll -- build --watch
end script
It's very important to have export LANG="en_US.UTF-8"
in this definition, because otherwise jekyll uses US-ASCII
and you can't get rid of messages like:
Liquid Exception: invalid byte sequence in US-ASCII in