Got a much simpler solution working for dat.test.
This commit is contained in:
1
dat.test/agenda/20250610.md
Normal file
1
dat.test/agenda/20250610.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
20250610: agenda
|
||||||
1
dat.test/agenda/20250619.md
Normal file
1
dat.test/agenda/20250619.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
20250619: agenda
|
||||||
1
dat.test/minutes/20250610.md
Normal file
1
dat.test/minutes/20250610.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
20250610: minutes
|
||||||
1
dat.test/minutes/20250619.md
Normal file
1
dat.test/minutes/20250619.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
20250619: minutes
|
||||||
@@ -1,3 +1,17 @@
|
|||||||
|
#
|
||||||
|
# By default the dat.live folder will be mounted.
|
||||||
|
# For testing you might like to switch to dat.test
|
||||||
|
# The HLBDAT environment variable will do this for you.
|
||||||
|
# If that variable is unset, dat.live will be used.
|
||||||
|
# To use dat.test instead, run this...
|
||||||
|
#
|
||||||
|
# $ HLBDAT=dat.test docker compose up
|
||||||
|
#
|
||||||
|
# ...but if you're happy to play with the live data
|
||||||
|
# this will do...
|
||||||
|
#
|
||||||
|
# $ docker compose up
|
||||||
|
#
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: php:8.2-apache
|
image: php:8.2-apache
|
||||||
@@ -7,7 +21,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./app/:/var/www/html:Z
|
- ./app/:/var/www/html:Z
|
||||||
- ./lib:/var/www/html/lib:Z
|
- ./lib:/var/www/html/lib:Z
|
||||||
- ./dat.live:/var/www/html/dat:Z
|
- ./${HLBDAT:-dat.live}:/var/www/html/dat:Z
|
||||||
networks:
|
networks:
|
||||||
- labnet
|
- labnet
|
||||||
adm:
|
adm:
|
||||||
@@ -18,7 +32,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./adm/:/var/www/html:Z
|
- ./adm/:/var/www/html:Z
|
||||||
- ./lib:/var/www/html/lib:Z
|
- ./lib:/var/www/html/lib:Z
|
||||||
- ./dat.live:/var/www/html/dat:Z
|
- ./${HLBDAT:-dat.live}:/var/www/html/dat:Z
|
||||||
networks:
|
networks:
|
||||||
- labnet
|
- labnet
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ function getEvents() {
|
|||||||
$ctl = $dt -> format("YmdHi");
|
$ctl = $dt -> format("YmdHi");
|
||||||
$entries[$i]["ctl"] = $ctl;
|
$entries[$i]["ctl"] = $ctl;
|
||||||
$datestamp = $dt -> format("Ymd");
|
$datestamp = $dt -> format("Ymd");
|
||||||
$files = array( "agenda" => sprintf("agenda/%d.md", $datestamp)
|
$files = array( "agenda" => sprintf("dat/agenda/%d.md", $datestamp)
|
||||||
, "minutes" => sprintf("minutes/%d.md", $datestamp)
|
, "minutes" => sprintf("dat/minutes/%d.md", $datestamp)
|
||||||
);
|
);
|
||||||
foreach ( $files as $key => $file ) {
|
foreach ( $files as $key => $file ) {
|
||||||
if ( file_exists( $file ) ) {
|
if ( file_exists( $file ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user