This repo has a sub repo containing the article source files , run this to initialize it
git submodule sync --init
There's git hooks to automatically update,
and
restart service if code was changed,
or
reload service if articles were changed
it reloads by sending POSIX SIGHUP (1) IPC signal (see man 7 signal)
Validate article source compiles to HTML as a git pre-commit hook
python3 src/blog_node5_net.py validate
This can be added to .git/hooks/pre-commit to test before commiting articles
cd blog.node5.net/articles
git rev-parse --git-path hooks
Now the folling can be added to .git/modules/blog.node5.net/articles/hooks
#!/bin/sh
cd ../../ && venv/bin/python src/blog_node5_net.py validate
TODO
- Caching
- Breadcrumbs
- Comments redirect scroll to comments section, show comment pending approval
- Live reload content
- Verify relation between articles and database comments
Done
- Test configuration files similar to
nginx -t - Reload service
- GIT hook
