RSS Git Download  Clone
..
  DB commented cpanfile feature 'accelerate' for carmel install (doesn't directly support features); tidied up login.tt 8 weeks ago
  TT template can't find is_between(), needs to call Utils.is_between(); displays selected category in number-of-records-found info bar 8 weeks ago
  AuthTinyExtend.pm 499B renamed access_denied page; moved configuration of link & label settings from record.tt to routes using vars.next_route; moved alert notifications (success & error) into own template; fixed js to auto-resize textarea on page load 2 months ago
  Class.pm 569B major rewrite - combined separate docs-lib and moongate apps into single app using prefixes with multiple route files; merged DB functions into model which is now a D2 plugin, providing encapsulated model domains (infolib, moongate & dpw); uses route names to allow tt to call uri_for_route, but some caveats: * route names must be unique across all route files * uri_for_route cannot be used in any template loaded after a forward since the data required in request.uri_for_route($name) is deleted during the forwarding process leading to fatal error when tt calls the uri_for_route function; META function no longer works since tt WRAPPER function disabled to allow routes to define layout 3 months ago
  DB.pm 3kB switched App/DB.pm classes to blocks for clarity; added cache to prevent unnecessary db lookup on every request; tidied up & improved documentation 8 weeks ago
  LogAnyAdapter.pm 3kB minor bugfix; moved htmx headers data into a var 3 months ago
  Model.pm 1kB major rewrite - combined separate docs-lib and moongate apps into single app using prefixes with multiple route files; merged DB functions into model which is now a D2 plugin, providing encapsulated model domains (infolib, moongate & dpw); uses route names to allow tt to call uri_for_route, but some caveats: * route names must be unique across all route files * uri_for_route cannot be used in any template loaded after a forward since the data required in request.uri_for_route($name) is deleted during the forwarding process leading to fatal error when tt calls the uri_for_route function; META function no longer works since tt WRAPPER function disabled to allow routes to define layout 3 months ago
  Test.pm 1kB used Module::Runtime to get App::DB::Result::column() working, but only with conventional 'package' syntax, does not work via Feature::Compat::Class and maybe Perl 5.34 due to inability to find DBIx::Simple::Result despite multiple BEGIN blocks; login.tt still needs 'main' layout 8 weeks ago
  Utils.pm 3kB dpw summary now shows filter regardless of number of records; moved threshold for requiring filter to config; additional space in dump_query() formatting 8 weeks ago
  README.txt
* app is designed for perl v5.34.0 & Feature::Compat::Class, does not work on later since signatures are not handled unless perl >= 5.36 specified in 'use' * requires development_local.yml & test_local.yml in environments dir to run tests and dev server * any new function expects db name to be same as prefix * to dump query to console, set flag in development_local.yml, can be over-ridden by 'SQL_TRACE=0/1' command-line $ ln -s production.yml deployment.yml on volvox.online [Apache2] ================================================================== # /etc/apache2/websites/volvox.online.ssl # documents library (check running port map in docker-compose.yml): ProxyPass /docs-lib http://localhost:5001/docs-lib ProxyPassReverse /docs-lib http://localhost:5001/docs-lib # reconfig timezone for GB: $ dpkg-reconfigure tzdata [select 8 then 27] OR [https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive]: ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y tzdata RUN unlink /etc/localtime RUN ln -s /usr/share/zoneinfo/Europe/London /etc/localtime ## to run: $ docker compose up -d ## to restart: $ docker compose [stop|start] documents_library # to rebuild: docker compose up --build --force-recreate --no-deps documents_library https://volvox.online/docs-lib on ZBOX [lighttpd] =================================================================================: $ plenv install 5.34.0 $ plenv local 5.34.0 $ plenv version # to confirm perl version $ plenv install-cpanm $ cpanm Carmel $ cpanm Plack $ carmel install $ carmel rollout $ plenv rehash # to test: $ perl -Ilocal/lib/perl5 local/bin/plackup [-E deployment] -p 5003 bin/app.psgi # for deployment, see bin/daemon-control.pl # \etc\lighttpd\conf-enabled\20-proxy.conf $HTTP["host"] =~ "docslib.zbox.local$" { server.document-root = "/home/raj/apps/DocsLibrary/public/" proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 5003, #"host" => "/tmp/docslib.sock", "check-local" => "disable", ) ) ) } on Windows client C:\Windows\System32\drivers\etc\hosts: 192.168.0.112 zbox.local [...] 192.168.0.112 docslib.zbox.local https://docslib.zbox.local/dpw/ ================================================================================================ update sequences: $ git fetch && git merge ZBOX: $ sudo /etc/init.d/docslib restart $ tail -f logs/deployment.log volvox: $ docker compose restart $ dlogs -f documents_library