# HG changeset patch
# User drewp@bigasterisk.com
# Date 2022-05-16 08:32:57
# Node ID a415be4cfac4768d9477874adafcdbbf9a71d137
# Parent 905cf827d7504609ad35f34a60e409f4999d287b
timeline gets a launcher for vitejs server
diff --git a/bin/homepageConfig b/bin/homepageConfig
--- a/bin/homepageConfig
+++ b/bin/homepageConfig
@@ -51,7 +51,7 @@ for role, server in sorted(graph.predica
if not path:
continue
server = server.rstrip('/')
- viteServer = server.replace('820', '830') # rewrite this please
+ viteServer = server.replace('82', '83') # rewrite this please
location(path, server, viteServer)
showPath = showconfig.showUri().split('/', 3)[-1]
diff --git a/bin/timeline b/bin/timeline
new file mode 100755
--- /dev/null
+++ b/bin/timeline
@@ -0,0 +1,3 @@
+#!/bin/zsh
+pnpx vite -c light9/web/timeline/vite.config.ts &
+wait
diff --git a/light9/networking.py b/light9/networking.py
--- a/light9/networking.py
+++ b/light9/networking.py
@@ -56,5 +56,6 @@ rdfdb = ServiceAddress(L9['rdfdb'])
subComposer = ServiceAddress(L9['subComposer'])
subServer = ServiceAddress(L9['subServer'])
vidref = ServiceAddress(L9['vidref'])
+timeline = ServiceAddress(L9['timeline'])
patchReceiverUpdateHost = ServiceAddress(L9['patchReceiverUpdateHost'])
diff --git a/light9/web/timeline/vite.config.ts b/light9/web/timeline/vite.config.ts
new file mode 100644
--- /dev/null
+++ b/light9/web/timeline/vite.config.ts
@@ -0,0 +1,20 @@
+import { defineConfig } from "vite";
+
+const servicePort = 8216;
+export default defineConfig({
+ base: "/timeline/",
+ root: "./light9/web/timeline",
+ publicDir: "../web",
+ server: {
+ host: "0.0.0.0",
+ strictPort: true,
+ port: servicePort + 100,
+ hmr: {
+ port: servicePort + 200,
+ },
+ },
+ clearScreen: false,
+ define: {
+ global: {},
+ },
+});
diff --git a/show/dance2019/networking.n3 b/show/dance2019/networking.n3
--- a/show/dance2019/networking.n3
+++ b/show/dance2019/networking.n3
@@ -18,6 +18,7 @@ sh:netHome
:subServer ;
:vidref ;
:webServer ;
+ :timeline ;
:collector ;
:collectorZmq .
@@ -33,3 +34,4 @@ sh:netHome
:rdfdb :urlPath "rdfdb" .
:subServer :urlPath "subServer" .
:vidref :urlPath "vidref" .
+:timeline :urlPath "timeline" .