docker-github-pages icon indicating copy to clipboard operation
docker-github-pages copied to clipboard

Container does not stop when syntax error encountered

Open mrmanc opened this issue 6 years ago • 0 comments
trafficstars

I’ve found when using this image to run GHP sites that the container doesn’t stop when I hit ctrl-c if warnings were encountered in the Jekyll site. This leaves a container running in the background that I have to terminate manually and I constantly fail to notice, only realising when trying to launch another site.

e.g. Liquid Warning: Liquid syntax error (line 24): Unexpected character " in "{{ "/images/2019-02-14/image.png" | relative_url" }}" in /usr/src/app/_posts/2019-02-14-post.md

(the syntax error here being the double quote after the relative_url filter)

I thought this might be something to do with the exit code of the command, but running jekyll outside the container shows an exit code of 0

mrmanc avatar Feb 14 '19 12:02 mrmanc