kcl-ddh / kiln

Kiln is a multi-platform framework for building and deploying complex websites whose source content is primarily in XML. It brings together various independent software components into an integrated whole that provides the infrastructure and base functionality for such sites.
Apache License 2.0
34 stars 62 forks source link

'standalone' build.sh static #23

Open geoffroy-noel-ddh opened 5 years ago

geoffroy-noel-ddh commented 5 years ago

Currently build.sh static relies on another instance of a kiln running in the background. It would be very convenient to have a single, stand-alone command that generates the dist.

Use case: A cron job to regularly generate a handful of html from TEI source files modified by an editorial team. I'd rather not have jetty running as a service and consuming a lot of memory just for the periodic conversions. And I'd also like to have this fully automated (i.e. not start and stop it manually).

Ideally there would be a way to run transforms entirely in the foreground. If that's not possible then at least starting kiln, downloading the dist from it and stopping kiln within the same bash.

ajenhl commented 5 years ago

I'm not averse to having the static build target allow for this, but remember that it is just the lightest of wrappers around a single wget call. The intent was to provide a simple way for non-developers to get a static set of files to then be hosted, rather than as a sysadmin tool.

Patches are welcome!