openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

commit 4fcc499b123b60ce0c9a6271538a7a58b7e1b23c
parent 316c68d33cf6b169a6b081828687d0fc30ac32ed
Author: Jan Dankert <develop@jandankert.de>
Date:   Fri, 21 Feb 2020 23:41:04 +0100

New: Template Watcher. Saving a template will cause an invocation of the template compiler. This saves some lifetime of developers ;)

Diffstat:
dev-helper/template-watcher.sh | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/dev-helper/template-watcher.sh b/dev-helper/template-watcher.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Calling the template compiler if a template or a component was modified. +# +# Need for: +# - inotify-tools +# + +CMS_URL=$1 + +while true; do + + inotifywait --event modify -r ../modules/template-engine/ ../modules/cms-ui/themes/default/html/views/ + echo File was changed. + + curl $1/modules/template-engine/TemplateCompiler.php +done + +